Advertisement
Guest User

test.py

a guest
Jul 26th, 2017
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.61 KB | None | 0 0
  1. from tkinter import *
  2.  
  3. def azzera():
  4.     for widget in test.winfo_children():
  5.         widget.place_forget()
  6.    
  7. def start():
  8.     azzera()
  9.     #qua metti la parte per tuo test
  10.  
  11. test=Tk()
  12. test.title("TEMPS-A TEST")
  13. test.geometry("500x500")
  14. test.resizable(0,0)
  15.  
  16. L1=Label(text="BENVENUTO\n",font= ("Courier Now", 11, "bold"))
  17. L1.place(relx=0.5,y=180,anchor='center')
  18. L2=Label(text="----------\nClicca qui",font= ("Courier Now", 11))
  19. L2.place(relx=0.5,y=200,anchor='center')
  20. B1=Button(test,text="START",font=("Courier Now", 11),command=start)
  21. B1.place(relx=0.5,y=250,anchor='center')
  22.  
  23. test.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement