Show Tcl/Tk version number in _test() and show Unicode test if possible.

This commit is contained in:
Guido van Rossum 2000-03-30 23:19:44 +00:00
parent a14253d4f8
commit 2ab9082a07
1 changed files with 4 additions and 1 deletions

View File

@ -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(