I'm creating a simple calculator that add two integer and show the result on the line A+B. But when I click the button and the error show up, can you guys please explain for me what's wrong and how to fix it, thank you guys so much.
from tkinter import *
parent = Tk()
A= Label(parent, text = "A").grid(row = 0, column = 0)
e1 = Entry(parent).grid(row = 0, column = 1)
B= Label(parent, text = "B").grid(row = 1, column = 0)
e2 = Entry(parent).grid(row = 1, column = 1)
AaddB=Label(parent, text = "A+B").grid(row = 6, column = 0)
def AaddB():
print (A+B)
submit = Button(parent, text = "PLUS",command = AaddB).grid(row = 4, column =1)
parent.mainloop()