Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from tkinter import *
- from tkinter import messagebox
- # Create a window
- top = Tk()
- top.geometry("300x150")
- # Event handlers
- # Widgets
- lbl_num1 = Label(top, text="Num 1")
- lbl_num1.place(x=5, y=5)
- lbl_num2 = Label(top, text="Num 2")
- lbl_num2.place(x=5, y=30)
- lbl_operation = Label(top, text="Operation")
- lbl_operation.place(x=5, y=55)
- txt_num1 = Entry(top)
- txt_num1.place(x=90, y=5)
- txt_num2 = Entry(top)
- txt_num2.place(x=90, y=30)
- # Show the window
- top.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement