[PyQt] new style signal/slot and sender() method
Erik Janssens
Erik.Janssens at conceptive.be
Fri Aug 27 16:14:40 BST 2010
Hi,
We are switching our codebase to new style signal/slot and
this is a strange issue.
When connecting a QComboBox currentIndexChanged signal to
a slot :
def granularity_changed(self, idx):
granularity = self.sender().get_value()
sender returns the right object, however, when using
the pyqtSlot decorator :
@QtCore.pyqtSlot(int)
def granularity_changed(self, idx):
granularity = self.sender().get_value()
sender returns None.
Is this a known issue ? If so, can anybody shed some light
on the reasoning behind this ?
Thx,
Erik
More information about the PyQt
mailing list