You need to do two things: keep a reference to the widget, and then use the get()
method to get the string.
Here’s an example:
self.entry = Entry(...)
...
print("the text is", self.entry.get())
You need to do two things: keep a reference to the widget, and then use the get()
method to get the string.
Here’s an example:
self.entry = Entry(...)
...
print("the text is", self.entry.get())