Skip to content

Commit f1320f6

Browse files
authored
pythongh-110345: show Tcl/Tk patchlevel in tkinter._test()
1 parent efd8c7a commit f1320f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/tkinter/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4696,7 +4696,7 @@ def panes(self):
46964696

46974697
def _test():
46984698
root = Tk()
4699-
text = "This is Tcl/Tk version %s" % TclVersion
4699+
text = "This is Tcl/Tk %s" % root.globalgetvar('tk_patchLevel')
47004700
text += "\nThis should be a cedilla: \xe7"
47014701
label = Label(root, text=text)
47024702
label.pack()

0 commit comments

Comments
 (0)