Пример #1
0
 def restoreState(self, state, update=False):
     """overwriting standard Node method to extend it with restoring ctrlWidget state"""
     logger.debug("restoring [{0}] Node's state".format(self.name()))
     Node.restoreState(self, state)
     logger.debug("restored state of [{0}] Node".format(self.name()))
     # additionally restore state of the control widget
     self._ctrlWidget.restoreState(state['crtlWidget'])
     if update:
         self.update()
Пример #2
0
 def restoreState(self, state, update=False):
     """overwriting standard Node method to extend it with restoring ctrlWidget state"""
     logger.debug("restoring [{0}] Node's state".format(self.name()))
     Node.restoreState(self, state)
     logger.debug("restored state of [{0}] Node".format(self.name()))
     # additionally restore state of the control widget
     self._ctrlWidget.restoreState(state['crtlWidget'])
     if update:
         self.update()
Пример #3
0
    def __init__(self,
                 name,
                 terminals=None,
                 allowAddInput=False,
                 allowAddOutput=False,
                 allowRemove=True):
        Node.__init__(self, name, terminals, allowAddInput, allowAddOutput,
                      allowRemove)

        self.settings_dict = {}
Пример #4
0
 def saveState(self):
     """overwriting stadart Node method to extend it with saving ctrlWidget state"""
     state = Node.saveState(self)
     # sacing additionaly state of the control widget
     state['crtlWidget'] = self._ctrlWidget.saveState()
     return state
Пример #5
0
 def restoreState(self, state):
     """overwriting stadart Node method to extend it with restoring ctrlWidget state"""
     Node.restoreState(self, state)
     # additionally restore state of the control widget
     self._ctrlWidget.restoreState(state['crtlWidget'])
Пример #6
0
 def saveState(self):
     state = Node.saveState(self)
     state['text'] = str(self.text.toPlainText().encode('utf-8'))
     return state
Пример #7
0
 def saveState(self):
     state = Node.saveState(self)
     state['text'] = str(self.text.toPlainText().encode('utf-8'))
     return state
Пример #8
0
 def restoreState(self, state):
     """overwriting stadart Node method to extend it with restoring ctrlWidget state"""
     Node.restoreState(self, state)
Пример #9
0
 def saveState(self):
     """overwriting stadart Node method to extend it with saving ctrlWidget state"""
     state = Node.saveState(self)
     # sacing additionaly state of the control widget
     #state['crtlWidget'] = self.ctrlWidget().saveState()
     return state
 def __init__(self, name, terminals=None, allowAddInput=False, allowAddOutput=False, allowRemove=True):
     Node.__init__(self, name, terminals, allowAddInput, allowAddOutput, allowRemove)
 
     self.settings_dict = {}
Пример #11
0
 def restoreState(self, state):
     """overwriting stadart Node method to extend it with restoring ctrlWidget state"""
     Node.restoreState(self, state)
Пример #12
0
 def restoreState(self, state):
     """overwriting stadart Node method to extend it with restoring ctrlWidget state"""
     Node.restoreState(self, state)
     # additionally restore state of the control widget
     self._ctrlWidget.restoreState(state['crtlWidget'])