tkinter Entry validation modes
Wildman
best_lay at yahoo.com
Sat Apr 2 13:47:53 EDT 2016
On Sat, 02 Apr 2016 16:11:19 +0100, Mark Lawrence 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? Background, I'm knocking up an app so I can play with
> the various modes so that I can see how they work, as I'm just venturing
> into the tkinter world.
This is off the top of my head and I have not tested it.
Since validate is a config option this might do it:
e.config(validate='focus')
--
<Wildman> GNU/Linux user #557453
The cow died so I don't need your bull!
More information about the Python-list
mailing list