mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Show Tcl/Tk version number in _test() and show Unicode test if possible.
This commit is contained in:
parent
a14253d4f8
commit
2ab9082a07
1 changed files with 4 additions and 1 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue