]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.15] gh-78335: Complete the widget option lists in tkinter docstrings (GH-152485...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 28 Jun 2026 16:53:52 +0000 (18:53 +0200)
committerGitHub <noreply@github.com>
Sun, 28 Jun 2026 16:53:52 +0000 (19:53 +0300)
commit8777a0cf026befb9161d5a65ccbb8967d1ed9396
tree9207580f7566dc8ba008e67457bfa8c9194b5d1c
parent49f865bcd42851d45a91f3abe11c95a3d039ee1c
[3.15] gh-78335: Complete the widget option lists in tkinter docstrings (GH-152485) (GH-152500)

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: Serhiy Storchaka <storchaka@gmail.com>
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]