def postDetach(self): '''reimplemented from :class:`TaurusBaseWritableWidget`''' TaurusBaseWritableWidget.postDetach(self) Qt.QObject.disconnect(self, Qt.SIGNAL("currentIndexChanged(int)"), self.writeIndexValue) Qt.QObject.disconnect(self, Qt.SIGNAL("applied()"), self.writeValue)
def postDetach(self): '''reimplemented from :class:`TaurusBaseWritableWidget`''' TaurusBaseWritableWidget.postDetach(self) try: self.currentIndexChanged.disconnect(self.writeIndexValue) except TypeError: # In new style-signal if a signal is disconnected without # previously was connected it, it raises a TypeError pass
def postDetach(self): '''reimplemented from :class:`TaurusBaseWritableWidget`''' TaurusBaseWritableWidget.postDetach(self) try: self.currentIndexChanged.disconnect(self.writeIndexValue) self.applied.disconnect(self.writeValue) except TypeError: # In new style-signal if a signal is disconnected without # previously was connected it, it raises a TypeError pass