Calculadora Tkinter
Calculadora Tkinter
def sumar():
numero1 = int(txt1.get())
numero2 = int(txt2.get())
return total.set(suma)
def restar():
numero1 = int(txt1.get())
numero2 = int(txt2.get())
return total.set(resta)
def multiplicar():
numero1 = int(txt1.get())
numero2 = int(txt2.get())
return total.set(multiplicacion)
def dividir():
numero1 = int(txt1.get())
numero2 = int(txt2.get())
windowp = Tk()
windowp.title("Calculadora Básica")
windowp.geometry("400x400")
windowp.resizable(False,False)
windowp.config(bg="wheat2")
txt1 = Entry(windowp)
txt2 = Entry(windowp)
total = StringVar()
windowp.mainloop()