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

2013-03-06 Thread Bob Greschke
I saw that earlier in the day (and a couple of weeks ago too). I understand it just about as well as lambdas. :) Do all of those values get passed each time a key is pressed? Also, each Entry() field has a different max length. Where do I pass that in all of this? It would need to be an arg

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

2013-03-06 Thread Bryan Oakley
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 wrote: > Hi! > > I'm mes

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

2013-03-06 Thread Bob Greschke
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 .bind method. I'm using the line below and it seems to work fine, but I'm not