[PyQt] self.sender() with new connect/signal

Albert Cervera i Areny albert at nan-tic.com
Sun Jun 20 10:57:10 BST 2010

We're changing an application from using old-style 'connect(SIGNAL()  
SLOT())' functions to new-style 'signal.connect( slot )' ones but it  
seems that executing 'self.sender()' in the slot doesn't have the same  
behaviour as it used to because it always returns None.

Is there a way to know who called the slot with new-style signal and slot?

This message was sent using IMP, the Internet Messaging Program.

More information about the PyQt mailing list