Skip to content

Commit 6d23b32

Browse files
[3.12] gh-110345: show Tcl/Tk patchlevel in tkinter._test() (GH-110350) (GH-114253)
(cherry picked from commit b8f29b1) Co-authored-by: Christopher Chavez <[email protected]>
1 parent 281fef1 commit 6d23b32

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
@@ -4633,7 +4633,7 @@ def panes(self):
46334633

46344634
def _test():
46354635
root = Tk()
4636-
text = "This is Tcl/Tk version %s" % TclVersion
4636+
text = "This is Tcl/Tk %s" % root.globalgetvar('tk_patchLevel')
46374637
text += "\nThis should be a cedilla: \xe7"
46384638
label = Label(root, text=text)
46394639
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)