Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 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. txt_num1 = Entry(top)
  21. txt_num1.place(x=90, y=5)
  22.  
  23. txt_num2 = Entry(top)
  24. txt_num2.place(x=90, y=30)
  25.  
  26.  
  27. # Show the window
  28. top.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement