I'm writing a very simple app using Glade and PyGtk. In the app, I need to collect user inputs and parse it as a conf file. In order to dump all the freetext user inputs to a StringIO, I am using the on_xxxxxxxx_activate
signal.This solution requires the user to hit Enter for the signal to be emitted. Instead I would like to use a signal which emits on focus change (switching to any other field). Does PyGtk provide a signal like that?
Addendum:
The behaviour I am looking for here is the one used by gtk_editable_insert_text
. Is there a way of linking a GtkEditable
's signal to GtkEntry
?
gtk.Entry
implements thegtk.Editable
interface, so you can use those methods on your entry widget without problems. But if I understand your question correctly, you don't want theinsert_text
signal. You should rather use thefocus-out-event
.