Validating Entry in tkinter

Terry Reedy tjreedy at udel.edu
Mon Jul 25 19:24:33 CEST 2011


On 7/25/2011 8:31 AM, Peter Otten wrote:
> Saul Spatz wrote:
>
>> That doesn't work, I'm being stupid,  The user might type anywhere in the
>> string, not just at the end.  I need
>>
>> return all([c in '1234567890abcdefABCDEF ' for c in after])

If one wants to validate keystrokes, rather than the entire field after 
the fact, is it possible to set an onkey handler, that will pass on 
valid keys?

-- 
Terry Jan Reedy




More information about the Python-list mailing list