def __init__(self, check): QSignalTransition.__init__(self, check.stateChanged[int]) self.eventTested = False
def eventTest(self, event): self.eventTested = True if not QSignalTransition.eventTest(self, event): return False return event.arguments()[0] == Qt.Checked