]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-78335: Complete the widget option lists in tkinter docstrings (GH-152485) (GH...
authorSerhiy Storchaka <storchaka@gmail.com>
Sun, 28 Jun 2026 17:29:48 +0000 (20:29 +0300)
committerGitHub <noreply@github.com>
Sun, 28 Jun 2026 17:29:48 +0000 (17:29 +0000)
commit1e011ab10956c418f7ab19e2b46855ed6ee87626
tree41ca11d648f0bcd07ceb11ee0003492aa93649f1
parente0f81864ec2853152648050b98ec828f6b74c658
gh-78335: Complete the widget option lists in tkinter docstrings (GH-152485) (GH-152513)

Several widget __init__ docstrings omitted valid options, and Menubutton and
Message had no option list at all.  List every option supported by the widget,
tagging those added in Tk 9.0 and 9.1.

Add test_options_in_docstring, asserting that every option in OPTIONS is named
in the widget's __init__ docstring.  Options reported by keys() but not in the
docstring are only printed in verbose mode, as some depend on the Tk version.

(cherry picked from commit ba0c0e6be18ea56d00b4534cc9e32d1acaba96d6)

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Lib/test/test_tkinter/test_geometry_managers.py
Lib/test/test_tkinter/widget_tests.py
Lib/test/test_ttk/test_extensions.py
Lib/tkinter/__init__.py
Lib/tkinter/ttk.py
Misc/NEWS.d/next/Library/2026-06-28-11-00-40.gh-issue-78335.Kp3mWq.rst [new file with mode: 0644]