Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import tkinter as tk
- def step(event):
- label['text'] += 1
- if __name__ == '__main__':
- root = tk.Tk()
- label = tk.Label(root, text=0)
- root.bind('<KeyPress-s>', step)
- label.pack()
- root.mainloop()
Add Comment
Please, Sign In to add comment