all tasks
This commit is contained in:
parent
b83f433714
commit
68f8f3e56b
14735 changed files with 178959 additions and 0 deletions
|
|
@ -0,0 +1,13 @@
|
|||
from Tkinter import Tk, Label, Button
|
||||
|
||||
def update_label():
|
||||
global n
|
||||
n += 1
|
||||
l["text"] = "Number of clicks: %d" % n
|
||||
|
||||
w = Tk()
|
||||
n = 0
|
||||
l = Label(w, text="There have been no clicks yet")
|
||||
l.pack()
|
||||
Button(w, text="click me", command=update_label).pack()
|
||||
w.mainloop()
|
||||
Loading…
Add table
Add a link
Reference in a new issue