Skip to content

gh-157676: Fix KeyError in tkinter.simpledialog when a foreign window holds the grab - #157677

Open
serhiy-storchaka wants to merge 1 commit into
python:mainfrom
serhiy-storchaka:gh-157676-simpledialog-grab
Open

serhiy-storchaka wants to merge 1 commit into
python:mainfrom
serhiy-storchaka:gh-157676-simpledialog-grab

Conversation

@serhiy-storchaka

Copy link
Copy Markdown
Member

_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. Regression from #151848, not released.

🤖 Generated with Claude Code

…window holds the grab

_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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant