Sorry for a newbie question but I could not figure out how to print a text which a user enter in a GTKEntry field after he press a button.
I design my app with glade, a simple TextEntry Field and a button. After I change the code of myappWindow.py:
def on_button1_clicked(self, widget, data=None):
print 'pressed'
def entry1_changed_cb(self, widget, data=None):
return widget.get_text ()
But now I couldn't find out how to print the text of the entry field after the user pressed the button.
Thanks for any help!