Advertisement
Guest User

Untitled

a guest
Jul 19th, 2018
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. from tkinter import *
  2.  
  3. def f1():
  4. root.quit()
  5.  
  6. root = Tk()
  7. root.geometry("400x400")
  8. lab1 = Label(text="Добро пожаловать")
  9. lab1.pack()
  10.  
  11.  
  12. X = 0
  13. Y = 0
  14. lab_sum = Label(text = str(X) + "+" + str(Y))
  15. lab_sum.pack()
  16.  
  17. but_exit = Button(text="Exit", command=f1)
  18. but_exit.pack()
  19. but_exit.place(x=350, y=350)
  20.  
  21. root.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement