Advertisement
Guest User

Untitled

a guest
Feb 24th, 2018
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. import tkinter as tk
  2. import time
  3.  
  4. root = tk.Tk()
  5.  
  6.  
  7. def skan():
  8. label.config(text="Ale wcisnales!!")
  9. time.sleep(4)
  10. label.config(text="I po wcisnieciu:(")
  11.  
  12.  
  13. label = tk.Label(root, text="Ciskaj!")
  14. label.pack()
  15. but = tk.Button(root, text="KLIK!", command=skan)
  16. but.pack()
  17.  
  18. root.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement