Check out the following code:
GUI_textbox_widget.py
Now, our GUI looks like this:
After entering some text and clicking the button, there is the following change in the GUI: