]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-38464: Make tkinter nametowidget() work with cloned menus (GH-152336)
authorSerhiy Storchaka <storchaka@gmail.com>
Fri, 26 Jun 2026 23:02:52 +0000 (02:02 +0300)
committerGitHub <noreply@github.com>
Fri, 26 Jun 2026 23:02:52 +0000 (02:02 +0300)
commit5c3555bdc56a8e110a7d366f8ac0a93cd082e90f
tree1a4226361b509dc7704dd0f551aa14932179eacc
parent5fed5ce85d9c862673cc68294f757f345bbcc9b1
gh-38464: Make tkinter nametowidget() work with cloned menus (GH-152336)

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.

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]