Python tkInter text entry validation
Posted
by meade
on Stack Overflow
See other posts from Stack Overflow
or by meade
Published on 2009-06-19T15:54:36Z
Indexed on
2010/03/13
21:05 UTC
Read the original article
Hit count: 248
I'm trying to validate the entry of text using Python/tkInter
def validate_text():
return False
text = Entry(textframe, validate="focusout", validatecommand=validate_text)
where validate_text is the function - I've tried always returning False and always returning True and there's no difference in the outcome..? Is there a set of arguments in the function that I need to include?
Edit - changed from NONE to focusout...still not working
© Stack Overflow or respective owner