Ejemplo n.º 1
0
 def __setstate__(self, str_state):
     # This method is unnecessary since this object will almost
     # never be pickled by itself and only via an object that
     # contains it, therefore __init__ will be called when the
     # scene is constructed.  However, setstate is defined just for
     # completeness.
     state_pickler.set_state(self, state_pickler.loads_state(str_state))
Ejemplo n.º 2
0
 def __setstate__(self, str_state):
     # This method is unnecessary since this object will almost
     # never be pickled by itself and only via an object that
     # contains it, therefore __init__ will be called when the
     # scene is constructed.  However, setstate is defined just for
     # completeness.
     state_pickler.set_state(self, state_pickler.loads_state(str_state))
Ejemplo n.º 3
0
 def __setstate__(self, str_state):
     # This method is unnecessary since this object will almost
     # never be pickled by itself and only via the scene, therefore
     # __init__ will be called when the scene is constructed.
     # However, setstate is defined just for completeness.
     #self.__init__()
     state = state_pickler.loads_state(str_state)
     state_pickler.update_state(state)
     self.__set_pure_state__(state)
Ejemplo n.º 4
0
 def __setstate__(self, str_state):
     # This method is unnecessary since this object will almost
     # never be pickled by itself and only via the scene, therefore
     # __init__ will be called when the scene is constructed.
     # However, setstate is defined just for completeness.
     #self.__init__()
     state = state_pickler.loads_state(str_state)
     state_pickler.update_state(state)
     self.__set_pure_state__(state)
Ejemplo n.º 5
0
 def __setstate__(self, str_state):
     """Allows standard pickle to work via the state_pickler.
     """
     self.__init__()
     # Get the state from the string and update it.
     state = state_pickler.loads_state(str_state)
     state_pickler.update_state(state)
     # Save the state and load it if we are running.
     self._saved_state = pickle.dumps(state)
     if self.running:
         self._load_saved_state()
Ejemplo n.º 6
0
 def __setstate__(self, str_state):
     """Allows standard pickle to work via the state_pickler.
     """
     self.__init__()
     # Get the state from the string and update it.
     state = state_pickler.loads_state(str_state)
     state_pickler.update_state(state)
     # Save the state and load it if we are running.
     self._saved_state = cPickle.dumps(state)
     if self.running:
         self._load_saved_state()
Ejemplo n.º 7
0
 def __setstate__(self, str_state):
     self.__init__()
     state = state_pickler.loads_state(str_state)
     state_pickler.update_state(state)
     self.__set_pure_state__(state)
Ejemplo n.º 8
0
 def __setstate__(self, str_state):
     self.__init__()
     state = state_pickler.loads_state(str_state)
     state_pickler.update_state(state)
     self.__set_pure_state__(state)
Ejemplo n.º 9
0
 def __setstate__(self, str_state):
     self.__init__()
     state_pickler.set_state(self, state_pickler.loads_state(str_state))
Ejemplo n.º 10
0
 def __setstate__(self, str_state):
     self.__init__()
     state_pickler.set_state(self, state_pickler.loads_state(str_state))