From: Christopher Chavez Date: Thu, 18 Jan 2024 15:46:58 +0000 (-0600) Subject: gh-110345: show Tcl/Tk patchlevel in `tkinter._test()` (GH-110350) X-Git-Tag: v3.13.0a4~428 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b8f29b1293f55e12e86a2a039b49b6f9f73851b7;p=thirdparty%2FPython%2Fcpython.git gh-110345: show Tcl/Tk patchlevel in `tkinter._test()` (GH-110350) --- diff --git a/Lib/tkinter/__init__.py b/Lib/tkinter/__init__.py index 2590acdc87e6..e0db41dd915e 100644 --- a/Lib/tkinter/__init__.py +++ b/Lib/tkinter/__init__.py @@ -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 index 000000000000..d9ccc0f12de4 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2023-10-04-11-09-30.gh-issue-110345.fZU1ud.rst @@ -0,0 +1 @@ +Show the Tcl/Tk patchlevel (rather than version) in :meth:`tkinter._test`.