[PyKDE] connecting multiple signals to a single python function

Phil Thompson phil at river-bank.demon.co.uk
Mon Feb 3 15:54:00 GMT 2003


On Monday 03 February 2003 2:07 pm, Mike Kinton wrote:
> I want to be able to connect multiple signals to a single slot using a
> python function.  To make this work, I need to be able to determine from
> within the python function which signal was the source.  Is it possible to
> do this?

You can get the source object using QObject.sender() - if the slot is in a 
sub-class of QObject - but that's about it I think.

Phil




More information about the PyQt mailing list