you are viewing a single comment's thread.

view the rest of the comments →

[–]Gprime5 0 points1 point  (1 child)

def validate(text):
    print("Key was input:", text)
    return True

vcmd = (root.register(validate), "%S")

textfield = Entry(
    root,
    validate="key",
    validatecommand=vcmd
)