[pygtk] Can you get signal_autoconnect to warn about missing handlers?

Christian Becke christianbecke at web.de
Tue Oct 7 02:44:38 WST 2008


skip at pobox.com schrieb:
>     skip> Is it possible to coax signal_autoconnect to warn about signal
>     skip> handlers defined in the widget tree but which are missing from the
>     skip> dict or instance argument?
>
> Or is it possible to get a list of all the handlers defined for the object
> in the Glade file?  With that information I can poke around myself.
>   
If you switch to GtkBuilder and latest pygtk (you need a svn snapshot >= 
revision 3012), you should get warnings about missing handlers.

To extract handler names from glade files, you could use e.g. sed:
sed -n -e 's/^.*<signal.*handler="\(.*\)".*\/>.*$/\1/pg' my-ui.glade


HTH,

Chris



More information about the pygtk mailing list