Example #1
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)
Example #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
Example #3
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
Example #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)
Example #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()
Example #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()