def detach(self): """Detaches the widget from the model""" TaurusBaseWidget.detach(self) # ---------------------------------------------------------------------- # Write your own code here after detaching the widget from the model # by default disable widget when dettached self.setEnabled(False)
def detach(self): """Detaches the widget from the model""" TaurusBaseWidget.detach(self) #---------------------------------------------------------------------- # Write your own code here after detaching the widget from the model # # Typical code is: # self.emit(QtCore.SIGNAL('valueChangedDueToEvent(QString)'), # QtCore.QString(value_str)) # self.disconnect(self, QtCore.SIGNAL('valueChangedDueToEvent(QString)'), # self.setTextValue) # by default disable widget when dettached self.setEnabled(False)