I am trying to get a text input from user and save it in a variable called newLine. When I print newLine i get 'None' I am unable to save the input from the user to a variable, please help, what am I doing wrong?
top = Tk()
L1 = Label(top, text="Enter new line").pack()
E1 = Entry(top).pack()
Button(top, text="OK", command=top.quit).pack()
top.mainloop()
newLine = str(E1)
print(newLine)