]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-151678: Add tests for tkinter.Menu (GH-151685)
authorSerhiy Storchaka <storchaka@gmail.com>
Fri, 19 Jun 2026 08:59:14 +0000 (11:59 +0300)
committerGitHub <noreply@github.com>
Fri, 19 Jun 2026 08:59:14 +0000 (11:59 +0300)
commitef5c32a40be50a33a9b7ac39ee64e6893bc22f60
treeecabf24c72bea1b048a41968b9fcb43e4e2c0d1a
parenta5568d0eb70f8ffbfc7815b58e24170787615931
gh-151678: Add tests for tkinter.Menu (GH-151685)

Cover previously-untested Menu methods in MenuTest: adding, inserting and
deleting items of every type, index resolution, invoking items, entry x/y
positions, and post/unpost/tk_popup mapping.

Also test per-entry configuration options and the errors raised for
invalid indices, entry types, option names and option values.

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Lib/test/test_tkinter/test_widgets.py