]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-38464: Make tkinter nametowidget() work with cloned menus (GH-152336) ...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 26 Jun 2026 23:27:42 +0000 (01:27 +0200)
committerGitHub <noreply@github.com>
Fri, 26 Jun 2026 23:27:42 +0000 (23:27 +0000)
commit7a835cbbfb40dcefdb64c719e1236102c501448d
tree547a241714ba56618db7c9cd7fe05752aeb3b3a2
parentfd6562e2264a55fd3e8d01b65dd62d2c4b5b7bb5
[3.13] gh-38464: Make tkinter nametowidget() work with cloned menus (GH-152336) (GH-152351)

Map the auto-generated name of a cloned menu (a menu used as a menubar
or a cascade) back to the original widget instead of raising KeyError.
(cherry picked from commit 5c3555bdc56a8e110a7d366f8ac0a93cd082e90f)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Lib/test/test_tkinter/test_misc.py
Lib/tkinter/__init__.py
Misc/NEWS.d/next/Library/2026-06-26-15-00-00.gh-issue-38464.yDPjKH.rst [new file with mode: 0644]