tkinter Entry validation modes

Mark Lawrence breamoreboy at yahoo.co.uk
Tue Apr 5 11:12:29 EDT 2016


On 02/04/2016 19:45, Terry Reedy wrote:
> On 4/2/2016 11:11 AM, Mark Lawrence via Python-list wrote:
>> A typical call to create an Entry field would be:-
>>
>> e = Entry(master, validate='all', ...)
>>
>> Once this call has been made is it possible to change the validation
>> mode at runtime?
>
> AFAIK, every keyword-only configuration option can be changed.
>
> e['validate'] = xyz
> e.config(validate=xyz)
>

Yes, there's an write up on it here 
http://effbot.org/tkinterbook/tkinter-widget-configuration.htm

-- 
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence




More information about the Python-list mailing list