Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2ab9082

Browse files
committed
Show Tcl/Tk version number in _test() and show Unicode test if possible.
1 parent a14253d commit 2ab9082

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Lib/lib-tk/Tkinter.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1959,7 +1959,10 @@ def __init__(self, master=None, cnf={}, **kw):
19591959

19601960
def _test():
19611961
root = Tk()
1962-
label = Label(root, text="Proof-of-existence test for Tk")
1962+
text = "This is Tcl/Tk version %s" % TclVersion
1963+
if TclVersion >= 8.1:
1964+
text = text + u"\nThis should be a cedilla: \347"
1965+
label = Label(root, text=text)
19631966
label.pack()
19641967
test = Button(root, text="Click me!",
19651968
command=lambda root=root: root.test.configure(

0 commit comments

Comments
 (0)