From 2ab9082a076e83750cb3e61c1f08f70a97378591 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 30 Mar 2000 23:19:44 +0000 Subject: [PATCH] Show Tcl/Tk version number in _test() and show Unicode test if possible. --- Lib/lib-tk/Tkinter.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Lib/lib-tk/Tkinter.py b/Lib/lib-tk/Tkinter.py index 9d0ea883348..f8b4bd54850 100644 --- a/Lib/lib-tk/Tkinter.py +++ b/Lib/lib-tk/Tkinter.py @@ -1959,7 +1959,10 @@ def __init__(self, master=None, cnf={}, **kw): 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(