summaryrefslogtreecommitdiffstats
path: root/Lib/lib-tk/Tkinter.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2000-03-30 23:19:44 (GMT)
committerGuido van Rossum <guido@python.org>2000-03-30 23:19:44 (GMT)
commit2ab9082a076e83750cb3e61c1f08f70a97378591 (patch)
treede88e6ff728cee13a18e0ad86afaf3dfa2fe530b /Lib/lib-tk/Tkinter.py
parenta14253d4f84753ecae9857d34e234b0efeb73252 (diff)
downloadcpython-2ab9082a076e83750cb3e61c1f08f70a97378591.zip
cpython-2ab9082a076e83750cb3e61c1f08f70a97378591.tar.gz
cpython-2ab9082a076e83750cb3e61c1f08f70a97378591.tar.bz2
Show Tcl/Tk version number in _test() and show Unicode test if possible.
Diffstat (limited to 'Lib/lib-tk/Tkinter.py')
-rw-r--r--Lib/lib-tk/Tkinter.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/lib-tk/Tkinter.py b/Lib/lib-tk/Tkinter.py
index 9d0ea88..f8b4bd5 100644
--- a/Lib/lib-tk/Tkinter.py
+++ b/Lib/lib-tk/Tkinter.py
@@ -1959,7 +1959,10 @@ class Tributton(Button):
def _test():
root = Tk()
- label = Label(root, text="Proof-of-existence test for Tk")
+ text = "This is Tcl/Tk version %s" % TclVersion
+ if TclVersion >= 8.1:
+ text = text + u"\nThis should be a cedilla: \347"
+ label = Label(root, text=text)
label.pack()
test = Button(root, text="Click me!",
command=lambda root=root: root.test.configure(