[3.12] gh-110345: show Tcl/Tk patchlevel in tkinter._test() (GH-110350) (GH-114253)

(cherry picked from commit b8f29b1293)

Co-authored-by: Christopher Chavez <chrischavez@gmx.us>
This commit is contained in:
Miss Islington (bot) 2024-01-18 17:11:03 +01:00 committed by GitHub
parent 281fef1e4c
commit 6d23b32374
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View file

@ -4633,7 +4633,7 @@ class PanedWindow(Widget):
def _test(): def _test():
root = Tk() 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" text += "\nThis should be a cedilla: \xe7"
label = Label(root, text=text) label = Label(root, text=text)
label.pack() label.pack()

View file

@ -0,0 +1 @@
Show the Tcl/Tk patchlevel (rather than version) in :meth:`tkinter._test`.