From: Guido van Rossum Date: Thu, 30 Mar 2000 23:19:44 +0000 (+0000) Subject: Show Tcl/Tk version number in _test() and show Unicode test if possible. X-Git-Tag: v1.6a1~76 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2ab9082a076e83750cb3e61c1f08f70a97378591;p=python Show Tcl/Tk version number in _test() and show Unicode test if possible. --- diff --git a/Lib/lib-tk/Tkinter.py b/Lib/lib-tk/Tkinter.py index 9d0ea88334..f8b4bd5485 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(