Commit ccbbb9d4 authored by Guido van Rossum's avatar Guido van Rossum

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

parent 1a2b1e9e
......@@ -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(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment