I have made a text box and a button. When the button is clicked it should display the content within the text box.
I have followed a tutorial but I couldn't get it to work, so I then came on here and found a thread where someone else had this problem, but I still couldn't figure out why mine gives this error.
AttributeError: 'NoneType' object has no attribute 'get'
Here is the code.
def send_feedback(*args):
feedback = self.MyEntryBox.get("0.0",'END-1c')
print(feedback)
self.MyEntryBox = Text(SWH, width=80, height=20, bd=5, fg="#0094FF",relief = RIDGE).place(x=200,y=400)
SubmitButton = Button(SWH, text="Submit", fg="White", bg="#0094FF", font=("Grobold",20),command=send_feedback).pack()