]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-78335: Complete the widget option lists in tkinter docstrings (GH-152485)
authorSerhiy Storchaka <storchaka@gmail.com>
Sun, 28 Jun 2026 16:14:27 +0000 (19:14 +0300)
committerGitHub <noreply@github.com>
Sun, 28 Jun 2026 16:14:27 +0000 (19:14 +0300)
commitba0c0e6be18ea56d00b4534cc9e32d1acaba96d6
treeab70629252cfa5a448742b148c41485b97ef26f2
parent5287a449847a783af257eec3df776ce013881b2e
gh-78335: Complete the widget option lists in tkinter docstrings (GH-152485)

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.

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]