Exemplo 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
Exemplo 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
Exemplo 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)
Exemplo 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)
Exemplo 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()
Exemplo 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()