mirror of https://github.com/python/cpython.git
Show Tcl/Tk version number in _test() and show Unicode test if possible.
This commit is contained in:
parent
a14253d4f8
commit
2ab9082a07
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue