]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-110345: show Tcl/Tk patchlevel in `tkinter._test()` (GH-110350)
authorChristopher Chavez <chrischavez@gmx.us>
Thu, 18 Jan 2024 15:46:58 +0000 (09:46 -0600)
committerGitHub <noreply@github.com>
Thu, 18 Jan 2024 15:46:58 +0000 (17:46 +0200)
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 2590acdc87e695a433de70076abeadea04a0c0b4..e0db41dd915ece99c4512c48df87ff7f303a2e8d 100644 (file)
@@ -4715,7 +4715,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`.