]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] gh-110345: show Tcl/Tk patchlevel in `tkinter._test()` (GH-110350) (GH-114253)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 18 Jan 2024 16:11:03 +0000 (17:11 +0100)
committerGitHub <noreply@github.com>
Thu, 18 Jan 2024 16:11:03 +0000 (16:11 +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 c5519060dc6f61165c5ffcda2ae5f246430d77e6..9bbbf0a684d27c767d2cd8028d0dcd80c721f7a2 100644 (file)
@@ -4633,7 +4633,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`.