]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-57762: fix misleading tkinter.Tk docstring (#98837)
authorShantanu <12621235+hauntsaninja@users.noreply.github.com>
Thu, 22 Dec 2022 22:35:32 +0000 (16:35 -0600)
committerGitHub <noreply@github.com>
Thu, 22 Dec 2022 22:35:32 +0000 (16:35 -0600)
Mentioned as a desired change by terryjreedy on the corresponding issue,
since Tk is not a subclass of Toplevel.

Lib/tkinter/__init__.py

index a8e7bf490ad46362f2e152f573fa786d8f379847..7565e0f7e46073e156597f0807627e7671ce6ea4 100644 (file)
@@ -2305,7 +2305,7 @@ class Tk(Misc, Wm):
 
     def __init__(self, screenName=None, baseName=None, className='Tk',
                  useTk=True, sync=False, use=None):
-        """Return a new Toplevel widget on screen SCREENNAME. A new Tcl interpreter will
+        """Return a new top level widget on screen SCREENNAME. A new Tcl interpreter will
         be created. BASENAME will be used for the identification of the profile file (see
         readprofile).
         It is constructed from sys.argv[0] without extensions if None is given. CLASSNAME