I'm making a simple print programme with a Tkinter GUI. I get the error
"'NoneType' object has no attribute 'get' "
everytime I click the print button and I'm not sure why. Any help is appreciated, thanks.
from tkinter import*
root=Tk()
root.title("Communication Aid")
root.resizable(0,0)
def printing():
printed = Input.get()
print(printed)
mainframe = Frame(root)
mainframe.grid(column=0, row=0, sticky=(N, W, E, S))
mainframe.columnconfigure(0, weight=1)
mainframe.rowconfigure(0, weight=1)
button = Button(mainframe, text = "Print", command= printing).grid(column=1, row=2, sticky=W)
Input = Entry(mainframe).grid(column=1, row=1, sticky=W)
root.mainloop()