Skip to content

Commit 4bc0c07

Browse files
[3.11] gh-110345: show Tcl/Tk patchlevel in tkinter._test() (GH-110350) (GH-114252)
(cherry picked from commit b8f29b1) Co-authored-by: Christopher Chavez <[email protected]>
1 parent 569182c commit 4bc0c07

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

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