Dear PyGTK users,

I would like to be able to list the signals that an arbitrary object can
be connected to. I want to be able to find the signal name, the names of
the arguments of the corresponding callback and its return type.

For instance, with gtk.Window, I would like to get:
    name="activate-default", args=("window",), return=NoneType
    name="activate-focus", args=("window",), return=NoneType
    name="frame-event", args=("window", "event"), return=NoneType
    ...
I don't mind if I get or not the signals inherited from the parent
classes (as they can be then discovered recursively).

I know that his information can be found in the reference manual, but I
want to get it from my program...

Can I use introspection to obtain this result, and how?

Otherwise, can somebody give me a reference about how to interprete the
file gtk.defs which is installed with PyGTK and seems to contain all the
information that I need?

Thanks in advance for your help,
Franck
_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to