[Tkinter-discuss] StringVar() .trace(), .trace_vdelete() use

Bryan Oakley bryan.oakley at gmail.com
Thu Mar 7 02:18:57 CET 2013


If you're doing this for input validation you should consider using
the built-in validation features of the entry widget instead of using
a trace. Here's a description of how to use it:

http://stackoverflow.com/a/4140988/7432


On Wed, Mar 6, 2013 at 6:49 PM, Bob Greschke <bob at passcal.nmt.edu> wrote:
> Hi!
>
> I'm messing with the .trace() function of StringVar()s to, in this case, check to see that the user has not entered more than an allowable number of characters (ckW() below does that).  I'm replacing a monstrous <KeyRelease> .bind method.


More information about the Tkinter-discuss mailing list