summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2024-01-18 16:11:03 (GMT)
committerGitHub <noreply@github.com>2024-01-18 16:11:03 (GMT)
commit6d23b32374786ea41e92e90161fe4d0b0bb53d8b (patch)
tree25c71a28cb613d8b7b94955be16bd51205e4dda6 /Lib
parent281fef1e4cc15f94d20cf64907f9d8d9fea16d39 (diff)
downloadcpython-6d23b32374786ea41e92e90161fe4d0b0bb53d8b.zip
cpython-6d23b32374786ea41e92e90161fe4d0b0bb53d8b.tar.gz
cpython-6d23b32374786ea41e92e90161fe4d0b0bb53d8b.tar.bz2
[3.12] gh-110345: show Tcl/Tk patchlevel in `tkinter._test()` (GH-110350) (GH-114253)
(cherry picked from commit b8f29b1293f55e12e86a2a039b49b6f9f73851b7) Co-authored-by: Christopher Chavez <chrischavez@gmx.us>
Diffstat (limited to 'Lib')
-rw-r--r--Lib/tkinter/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/tkinter/__init__.py b/Lib/tkinter/__init__.py
index c551906..9bbbf0a 100644
--- a/Lib/tkinter/__init__.py
+++ b/Lib/tkinter/__init__.py
@@ -4633,7 +4633,7 @@ class PanedWindow(Widget):
def _test():
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"
label = Label(root, text=text)
label.pack()