Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. from tkinter import *
  2. from tkinter import messagebox
  3.  
  4. # Create a window
  5. top = Tk()
  6. top.geometry("300x150")
  7.  
  8. # Event handlers
  9.  
  10. # Widgets
  11. lbl_num1 = Label(top, text="Num 1")
  12. lbl_num1.place(x=5, y=5)
  13.  
  14. lbl_num2 = Label(top, text="Num 2")
  15. lbl_num2.place(x=5, y=30)
  16.  
  17. lbl_operation = Label(top, text="Operation")
  18. lbl_operation.place(x=5, y=55)
  19.  
  20.  
  21.  
  22. # Show the window
  23. top.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement