From tkinter import *
From tkinter import messagebox
Root = Tk()
Def count():
L1.config(text=int(e1.get())+int(e2.get()))
E1 = Entry(root=(‘Helvetica’,15))
E1. pack(pady=20)
E2 = Entry(root=(‘Helvetica’,15))
E2.pack(pady=20)
B1 = Button(root,text=,Hisoblash’,bg=’skyblue’,font=(‘Helvetica’,15),command=count)
E1. pack(pady=20)
l1 = Label(root,text=’ ‘,font=(‘Helvatica’,20))
l1. pack(pady=20)
Root.mainloop()
Do'stlaringiz bilan baham: |