Skip to content

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

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

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

Conversation

@serhiy-storchaka

@serhiy-storchaka serhiy-storchaka commented Jun 28, 2026

Copy link
Copy Markdown
Member

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)

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.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
(cherry picked from commit ba0c0e6)
@serhiy-storchaka serhiy-storchaka enabled auto-merge (squash) June 28, 2026 17:06
@serhiy-storchaka serhiy-storchaka changed the title gh-78335: Complete the widget option lists in tkinter docstrings (GH-152485) [3.13] gh-78335: Complete the widget option lists in tkinter docstrings (GH-152485) Jun 28, 2026
@serhiy-storchaka serhiy-storchaka merged commit 1e011ab into python:3.13 Jun 28, 2026
42 checks passed
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.

1 participant