gh-126008: Improve docstrings for Tkinter cget and configure methods (GH-133303)

* Explain the behavior of Widget.configure() depending on arguments.
* Unify descriptions.
* Replace "resource" with "option".
This commit is contained in:
Serhiy Storchaka 2025-08-12 07:55:01 +03:00 committed by GitHub
parent dd079db4b9
commit 027cacb67c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 69 additions and 62 deletions

View file

@ -1589,7 +1589,7 @@ class OptionMenu(Menubutton):
def __init__(self, master, variable, default=None, *values, **kwargs):
"""Construct a themed OptionMenu widget with master as the parent,
the resource textvariable set to variable, the initially selected
the option textvariable set to variable, the initially selected
value specified by the default parameter, the menu values given by
*values and additional keywords.