mirror of
https://github.com/python/cpython.git
synced 2026-10-28 10:25:05 +08:00
_temp_grab_focus() used grab_current() and focus_get(), which raise KeyError for windows which were not created by tkinter, such as a native message box. Use Tcl window names instead of widgets. Regression from GH-151848, not present in released versions.