| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
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>
|
Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14, 3.15. |
Sorry, something went wrong.
|
GH-152349 is a backport of this pull request to the 3.15 branch. |
Sorry, something went wrong.
|
GH-152350 is a backport of this pull request to the 3.14 branch. |
Sorry, something went wrong.
|
GH-152351 is a backport of this pull request to the 3.13 branch. |
Sorry, something went wrong.
…H-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 5c3555b) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
…H-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 5c3555b) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
…H-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 5c3555b) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
| Back | FazBrowse Home | New Git URL |
A menu installed as a menubar (root['menu'] = menu) or as a cascade is cloned by Tk under an auto-generated name where each path component is the original name prefixed with one or more # clone markers (for example .#!menu). nametowidget() raised KeyError for such names because the clones are not registered in the widget's children. It now maps a clone name back to the original widget.