Skip to content

Commit b8f29b1

Browse files
authored
gh-110345: show Tcl/Tk patchlevel in tkinter._test() (GH-110350)
1 parent 8e31cdc commit b8f29b1

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Lib/tkinter/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4715,7 +4715,7 @@ def panes(self):
47154715

47164716
def _test():
47174717
root = Tk()
4718-
text = "This is Tcl/Tk version %s" % TclVersion
4718+
text = "This is Tcl/Tk %s" % root.globalgetvar('tk_patchLevel')
47194719
text += "\nThis should be a cedilla: \xe7"
47204720
label = Label(root, text=text)
47214721
label.pack()
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Show the Tcl/Tk patchlevel (rather than version) in :meth:`tkinter._test`.

0 commit comments

Comments
 (0)