[pygtk] gobject.signal_list_names: incompehensions
Sandro Dentella
sandro at e-den.it
Fri Mar 24 03:20:10 WST 2006
Hi all, I'm a beginner in the GTK world, and I don't really understand
signals. I'd like to connect a click on an EventBox, but
my_event_box.connect('button_press', pressed)
complains:
TypeError: <gtk.EventBox object (GtkEventBox) at 0xb716093c>: unknown signal name: button_press
So I tried to use gobject.signal_list_names to get a list of the signals
admitted but I get a o-lenght list.
I further tried gobject.signal_list_names(gtk.Entry) and I got:
('activate', 'move-cursor', 'copy-clipboard', 'populate-popup',
'insert-at-cursor', 'delete-from-cursor', 'backspace', 'cut-clipboard',
'paste-clipboard', 'toggle-overwrite')
that doesn't mention 'key_press_event' that really works... so I'm
definitely puzzled and I hope somebody will let me understand. A pointer to
a tutorial on signals would also be appreciated.
Thanks
sandro
*:-)
--
Sandro Dentella *:-)
e-mail: sandro a e-den.it
http://www.tksql.org TkSQL Home page - My GPL work
More information about the pygtk
mailing list