]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.15] 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:31:46 +0000 (01:31 +0200)
committerGitHub <noreply@github.com>
Fri, 26 Jun 2026 23:31:46 +0000 (23:31 +0000)
commit029016654ec08142f59d4f46113b3c1ec0830387
tree40740428b57148284976b2ccfe1d04fefd15610d
parent90528ec04001f0a01e1a6c1565f3837751c013db
[3.15] gh-38464: Make tkinter nametowidget() work with cloned menus (GH-152336) (GH-152349)

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]