I'm making a calculator program with Python. I want to output the sum of the numbers input using tkinter.
enter code here
def plus():
e1.delete(0, END)
e2.delete(0, END)
e3.delete(0, END)
x = int(e1.get()) #Inputed value.
y = int(e2.get()) #Inputed value.
return e3.insert(0, x+y)
e1 = Entry(window)
e2 = Entry(window)
e3 = Entry(window)
e1entry, and then try to convert the text that's there to an integer, what integer result do you think you should get? Why? In your own words, if you want to remove the text from the entry, and also convert the text that is currently there to an integer, then which of those two things should happen first? Why?e3anEntry? from the given code it doesn't seem that it would ever be used by the user, meaning it can simply be a read-only widget, such asLabel