FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[3.15] gh-88758: Handle non-tkinter widgets in tkinter focus methods (GH-152337) by miss-islington · Pull Request #152346 · python/cpython · GitHub

Repository navigation

[3.15] gh-88758: Handle non-tkinter widgets in tkinter focus methods (GH-152337) - #152346

Merged
serhiy-storchaka merged 1 commit into
python:3.15from
miss-islington:backport-5fed5ce-3.15
Jun 26, 2026
Merged

serhiy-storchaka merged 1 commit into
python:3.15from
miss-islington:backport-5fed5ce-3.15

Conversation

miss-islington commented Jun 26, 2026 •
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Contributor

focus_get(), focus_displayof(), focus_lastfor() and winfo_containing()
now return None instead of raising KeyError when the focused widget was
not created by tkinter (for example a torn-off menu).
(cherry picked from commit 5fed5ce)

Co-authored-by: Serhiy Storchaka storchaka@gmail.com
Co-authored-by: Claude Opus 4.8 noreply@anthropic.com

…ythonGH-152337)

focus_get(), focus_displayof(), focus_lastfor() and winfo_containing()
now return None instead of raising KeyError when the focused widget was
not created by tkinter (for example a torn-off menu).
(cherry picked from commit 5fed5ce)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
serhiy-storchaka enabled auto-merge (squash) June 26, 2026 23:01
serhiy-storchaka merged commit 90528ec into python:3.15 Jun 26, 2026
55 checks passed
miss-islington deleted the backport-5fed5ce-3.15 branch June 26, 2026 23:30
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL