Using python I wrote the code below. I am trying to make a small calculator which multiplies an input by 5. When using the .get() command, I get 'NoneType' object has no attribute 'get'. Can anyone help?
from Tkinter import *
def calc_handler():
question = entry.get()
answer = question * 5
print answer
main = Tk()
main.title('Calculator')
main.geometry('350x100+300+100')
instructions = Label(main, text='Input A Number And I Will Multiply It By 5').grid(row=0, columnspan=2)
entry = Entry(main).grid(row=1, columnspan=2)
enter = Button(main, text='Click Here To Calculate', command=calc_handler).grid(row=3, column=1)
clear = Button(main, text='Clear').grid(row=3, column=2)
mainloop()