Skip to content

[3.15] gh-78335: Complete the widget option lists in tkinter docstrings (GH-152485)#152500

Merged
serhiy-storchaka merged 1 commit into
python:3.15from
miss-islington:backport-ba0c0e6-3.15
Jun 28, 2026
Merged

[3.15] gh-78335: Complete the widget option lists in tkinter docstrings (GH-152485)#152500
serhiy-storchaka merged 1 commit into
python:3.15from
miss-islington:backport-ba0c0e6-3.15

Conversation

@miss-islington

@miss-islington miss-islington commented Jun 28, 2026

Copy link
Copy Markdown
Contributor

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 ba0c0e6)

Co-authored-by: Serhiy Storchaka storchaka@gmail.com
Co-Authored-By: Claude Opus 4.8 noreply@anthropic.com

pythonGH-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.
(cherry picked from commit ba0c0e6)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@serhiy-storchaka serhiy-storchaka merged commit 8777a0c into python:3.15 Jun 28, 2026
54 of 55 checks passed
@miss-islington miss-islington deleted the backport-ba0c0e6-3.15 branch June 28, 2026 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants