Tkinter Pmw question
Matthew Dixon Cowles
matt at mondoinfo.com
Fri Sep 21 15:19:16 EDT 2001
On Fri, 21 Sep 2001 20:51:35 +0200, Janos Blazi <jblazi at hotmail.com>
wrote:
>The following statement does not work:
>
> z=Pmw.EntryField(fr_r,labelpos='w',label_text='xxx:',
>
>validate={'validator':'numeric','min':10,'max':100})
>
>When I pack z, it is displayed but I cannot enter anything (and the
>entry field is light read or maybe pink). If I change the validate
>option to None, it works.
>Why?
Dear JB,
The problem is that it's impossible to satisfy the validator's
requirements with the user's first character. If you set min to zero
or add "minstrict": 0 to your validation dictionary, I think it will
work as you expect.
Regards,
Matt
More information about the Python-list
mailing list