python-2.7gtkgtkentry

How to simulate Enter key at gtk.entry to save info


I want one or several gtk.Entry reply to a button created by me (gtk.Button) instead of a enter key.

I´m using Python 2.7

Is it possible?


Solution

  • I create a new Entry class adding this line: self.connect('focus-out-event', self.onEntryActivate )