I\'d like to remove focus from a widget manually.
w.focus_set()
and w.focus_force()
. However, method w.focus_force()
is impolite. It's better to wait for the window manager to give you the focus. Setting focus to parent widget or to the root window removes focus from the target widget.takefocus
option. Set takefocus to 0 to take your widget out of focus traversal (when user hits
key).