[Python-checkins] gh-57762: fix misleading tkinter.Tk docstring (GH-98837)

miss-islington webhook-mailer at python.org
Thu Dec 22 18:01:44 EST 2022


https://github.com/python/cpython/commit/1e0631e5ba7fcb4882a08d2abdc7614130c07660
commit: 1e0631e5ba7fcb4882a08d2abdc7614130c07660
branch: 3.11
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2022年12月22日T15:01:38-08:00
summary:
gh-57762: fix misleading tkinter.Tk docstring (GH-98837)
Mentioned as a desired change by terryjreedy on the corresponding issue,
since Tk is not a subclass of Toplevel.
(cherry picked from commit ad23da0e77c4c4a3185df64d1c199b8c17e08188)
Co-authored-by: Shantanu <12621235+hauntsaninja at users.noreply.github.com>
files:
M Lib/tkinter/__init__.py
diff --git a/Lib/tkinter/__init__.py b/Lib/tkinter/__init__.py
index a8e7bf490ad4..7565e0f7e460 100644
--- a/Lib/tkinter/__init__.py
+++ b/Lib/tkinter/__init__.py
@@ -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


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /