def restoreState(self, state): """Restore the state of the widget from a dictionary previously generated using saveState""" self.modeCombo.setCurrentIndex(self.modeCombo.findText(state['mode'])) #self.ctrl.holdingCheck.setChecked(state['holdingEnabled']) #if state['holdingEnabled']: # self.ctrl.holdingSpin.setValue(state['holding']) return DAQGenericTaskGui.restoreState(self, state['daqState'])
def restoreState(self, state): """Restore the state of the widget from a dictionary previously generated using saveState""" self.modeCombo.setCurrentIndex(self.modeCombo.findText(state["mode"])) # self.ctrl.holdingCheck.setChecked(state['holdingEnabled']) # if state['holdingEnabled']: # self.ctrl.holdingSpin.setValue(state['holding']) return DAQGenericTaskGui.restoreState(self, state["daqState"])
def restoreState(self, state): """Restore the state of the widget from a dictionary previously generated using saveState""" #print 'state: ', state #print 'DaqGeneric : ', dir(DAQGenericTaskGui) if 'mode' in state: self.modeCombo.setCurrentIndex(self.modeCombo.findText(state['mode'])) #self.ctrl.holdingCheck.setChecked(state['holdingEnabled']) #if state['holdingEnabled']: # self.ctrl.holdingSpin.setValue(state['holding']) if 'daqState' in state: return DAQGenericTaskGui.restoreState(self, state['daqState']) else: return None
def restoreState(self, state): """Restore the state of the widget from a dictionary previously generated using saveState""" #print 'state: ', state #print 'DaqGeneric : ', dir(DAQGenericTaskGui) if 'mode' in state: self.modeCombo.setCurrentIndex( self.modeCombo.findText(state['mode'])) #self.ctrl.holdingCheck.setChecked(state['holdingEnabled']) #if state['holdingEnabled']: # self.ctrl.holdingSpin.setValue(state['holding']) if 'daqState' in state: return DAQGenericTaskGui.restoreState(self, state['daqState']) else: return None
def restoreState(self, state): """Restore the state of the widget from a dictionary previously generated using saveState""" return DAQGenericTaskGui.restoreState(self, state['daqState'])