]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] 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:29 +0000 (18:53 +0200)
committerGitHub <noreply@github.com>
Sun, 28 Jun 2026 16:53:29 +0000 (19:53 +0300)
commit1b967f100b353b123d60b415d1a1e21300b6c01d
treeaac593f04dcb1377c95d23b9c8789659ba51497a
parent07672e9468a557d98f9d0bc6149d8a4d49e242c1
[3.14] gh-78335: Complete the widget option lists in tkinter docstrings (GH-152485) (GH-152501)

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]