I'm trying to make a GUI with Tkinter where you type two numbers in and it adds them together. I'm unsure how to display the answer in my window. Also when I run it there is an error which says: TypeError: unsupported operand type(s) for +: 'Entry' and 'Entry'
from tkinter import *
window = Tk()
def add():
label = Label(window, text=entry1 + entry2)
entry1 = Entry(window, width=10)
entry2 = Entry(window, width=10)
button = Button(window, text='Click to add', command=add)
entry1.pack()
entry2.pack()
button.pack()
label.pack()
If someone could help me fix my code I would greatly appreciate it.