I guess
Presumably your buttons are going to suffer from the same problem.
grid
returns None
so display
is None
? I assume that's because it actually changes the Entry
so it doesn't need to return a value? Check the documentation to be sure. With that in mind, should you actually be writingdisplay = Entry(root, width=25) display.grid(row=0, column=0, columnspan=3, padx=10, pady=20)
Presumably your buttons are going to suffer from the same problem.