Пример #1
0
 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'])
Пример #2
0
 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"])
Пример #3
0
 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
Пример #4
0
 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
Пример #5
0
 def restoreState(self, state):
     """Restore the state of the widget from a dictionary previously generated using saveState"""
     return DAQGenericTaskGui.restoreState(self, state['daqState'])
Пример #6
0
 def restoreState(self, state):
     """Restore the state of the widget from a dictionary previously generated using saveState"""
     return DAQGenericTaskGui.restoreState(self, state['daqState'])