Skip to content
Advertisement

Tag: textbox

Interactively validating Entry widget content in tkinter

What is the recommended technique for interactively validating content in a tkinter Entry widget? I’ve read the posts about using validate=True and validatecommand=command, and it appears that these features are limited by the fact that they get cleared if the validatecommand command updates the Entry widget’s value. Given this behavior, should we bind on the KeyPress, Cut, and Paste events

Advertisement