Пример #1
2
    def restoreState(self, state):
        GlobalTool.restoreState(self, state)
        self._last_dir = state['cal dir']


#     def save(self, session, path):
#         l = {}
#         l['cal dir'] = self._last_dir
#         session.addContentToSave(l, *path+('general.txt',))
# 
# 
#     def restore(self, session, path):
#         l =  eval(session.getSavedContent(*path +('general.txt',) ))
#         self._last_dir = l['cal dir']
Пример #2
0
 def restoreState(self, state):
     self.calibrations = []
     for p in state['cal paths']:
         self._loadWithPath(PathStr(p))
     GlobalTool.restoreState(self, state)
     return
Пример #3
0
 def restoreState(self, state):
     GlobalTool.restoreState(self, state)
     self._last_dir = state['cal dir']