Ejemplo n.º 1
0
 def start(self):
     """This is called by the plugin when the plugin actually
     starts."""
     registry.register_engine(self)
     # Notify any listeners that the engine is started.
     self.started = self
     self.running = True
Ejemplo n.º 2
0
 def start(self):
     """This is called by the plugin when the plugin actually
     starts."""
     registry.register_engine(self)
     # Notify any listeners that the engine is started.
     self.started = self
     self.running = True
Ejemplo n.º 3
0
 def set_engine(self, engine):
     """ Sets the mlab engine.
     """
     if not engine.running:
         warnings.warn('Engine is not running', stacklevel=2)
     self.current_engine = engine
     registry.register_engine(engine)
Ejemplo n.º 4
0
 def set_engine(self, engine):
     """ Sets the mlab engine.
     """
     if not engine.running:
         warnings.warn('Engine is not running', stacklevel=2)
     self.current_engine = engine
     registry.register_engine(engine)
Ejemplo n.º 5
0
 def setUp(self):
     e = NullEngine()
     e.start()
     registry.register_engine(e)
     engine_manager.current_engine = e
     self.e = e
     self.s = e.new_scene()
     self.s.scene = DummyScene()
Ejemplo n.º 6
0
 def setUp(self):
     e = NullEngine()
     e.start()
     registry.register_engine(e)
     engine_manager.current_engine = e
     self.e = e
     self.s = e.new_scene()
     self.s.scene = DummyScene()