Here's the code
from tkinter import*
win = Tk()
win.title('My application')
e = Entry(win).pack()
def click():
label = Label(win, text =
"Hello" +
e.get()).pack()
button = Button(win, text =
'Enter your name',
command =
'click').pack()
win.mainloop()
When I enter a name and click the button I created I end up with an error like, " Attribute Error: 'NoneType' object has no attribute 'get' ".
Can anybody please tell me why am I keep getting this Attribute error and how can I fix this? By the way, I'm a beginner who is trying to learn the basics.