]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] 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:28:56 +0000 (01:28 +0200)
committerGitHub <noreply@github.com>
Fri, 26 Jun 2026 23:28:56 +0000 (23:28 +0000)
commit069c9c0af51839dfd17663d5834f492570cfee50
treedfa2bf258e4dcd9a1c2b1ffb02dfcaedc31a8c0c
parent5730c9089393b70978f3973e0f69a6969a9ba53f
[3.14] gh-38464: Make tkinter nametowidget() work with cloned menus (GH-152336) (GH-152350)

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]