]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.11] gh-110345: show Tcl/Tk patchlevel in `tkinter._test()` (GH-110350) (GH-114252)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 18 Jan 2024 16:03:07 +0000 (17:03 +0100)
committerGitHub <noreply@github.com>
Thu, 18 Jan 2024 16:03:07 +0000 (16:03 +0000)
(cherry picked from commit b8f29b1293f55e12e86a2a039b49b6f9f73851b7)

Co-authored-by: Christopher Chavez <chrischavez@gmx.us>
Lib/tkinter/__init__.py
Misc/NEWS.d/next/Library/2023-10-04-11-09-30.gh-issue-110345.fZU1ud.rst [new file with mode: 0644]

index 012737c0d7bae38a0a67c38b30f0ba994e256d3d..34b4a7334ce80a7e86dfa4bd53b7b8f5f338c150 100644 (file)
@@ -4632,7 +4632,7 @@ class PanedWindow(Widget):
 
 def _test():
     root = Tk()
-    text = "This is Tcl/Tk version %s" % TclVersion
+    text = "This is Tcl/Tk %s" % root.globalgetvar('tk_patchLevel')
     text += "\nThis should be a cedilla: \xe7"
     label = Label(root, text=text)
     label.pack()
diff --git a/Misc/NEWS.d/next/Library/2023-10-04-11-09-30.gh-issue-110345.fZU1ud.rst b/Misc/NEWS.d/next/Library/2023-10-04-11-09-30.gh-issue-110345.fZU1ud.rst
new file mode 100644 (file)
index 0000000..d9ccc0f
--- /dev/null
@@ -0,0 +1 @@
+Show the Tcl/Tk patchlevel (rather than version) in :meth:`tkinter._test`.