[pygtk] Retrieving the signal_name from a handler function

Johan Dahlin jdahlin at async.com.br
Thu Jan 5 01:27:15 WST 2006


Thierry Lam wrote:
> For the follow codes:
> 
> handler_id = object.connect("signal_name", handler, arg1, arg2, arg3)
> 
> 
> def handler(object, arg1, arg2, arg3):
> 
> 
> How can I determine the "signal_name" from within the handler function?

You can't. The easiest work around is to send the name of the signal as 
an argument to the function.

Johan


More information about the pygtk mailing list