[issue44592] tkinter focus_get() with non-tkinter Tk widget

Akuli report at bugs.python.org
Fri Jul 9 11:16:04 EDT 2021


Akuli <akuviljanen17 at gmail.com> added the comment:

Forgot to mention: The correct fix IMO would be to return None when a KeyError occurs. This way code like `focus_get() == some_tkinter_widget` would always do the right thing, for example.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44592>
_______________________________________


More information about the Python-bugs-list mailing list