]> granicus.if.org Git - python/commitdiff
Show Tcl/Tk version number in _test() and show Unicode test if possible.
authorGuido van Rossum <guido@python.org>
Thu, 30 Mar 2000 23:19:44 +0000 (23:19 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 30 Mar 2000 23:19:44 +0000 (23:19 +0000)
Lib/lib-tk/Tkinter.py

index 9d0ea883348a8db3e3ca28f60d8d591676c2103b..f8b4bd5485075c28fbc4647530bb01746b02ff03 100644 (file)
@@ -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(