Skip to content

Commit ad23da0

Browse files
authored
gh-57762: fix misleading tkinter.Tk docstring (#98837)
Mentioned as a desired change by terryjreedy on the corresponding issue, since Tk is not a subclass of Toplevel.
1 parent 9cdb642 commit ad23da0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/tkinter/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2305,7 +2305,7 @@ class Tk(Misc, Wm):
23052305

23062306
def __init__(self, screenName=None, baseName=None, className='Tk',
23072307
useTk=True, sync=False, use=None):
2308-
"""Return a new Toplevel widget on screen SCREENNAME. A new Tcl interpreter will
2308+
"""Return a new top level widget on screen SCREENNAME. A new Tcl interpreter will
23092309
be created. BASENAME will be used for the identification of the profile file (see
23102310
readprofile).
23112311
It is constructed from sys.argv[0] without extensions if None is given. CLASSNAME

0 commit comments

Comments
 (0)