Exemple #1
0
 def on_disconnect(self):
     """
     Called automatically when the engine messagebus node exits/closes.
     This will emit a EvtDisconnect event.
     """
     Engine.on_disconnect(self)
     self.parent.event_generate(EvtDisconnect, when='tail')
 def on_disconnect(self):
     """
     The engine node disconnected from the message bus.
     This will emit a SigDisconnect signal.
     """
     Engine.on_disconnect(self)
     self.parent.emit(QtCore.SIGNAL(SigDisconnect))
    def on_disconnect(self):
        """
        Overloaded on_disconnect method of client to preform engine tasks
        """
        Engine.on_disconnect(self)

        # stop any running user code
        self.stop_code(quiet=True)
 def on_disconnect(self):
     """
     The engine node disconnected from the message bus.
     This will emit a "engine_disconnect" signal after preforming standard
     engine disconnect tasks
     """
     Engine.on_disconnect(self)
     gobject.idle_add(self.parent.emit, "engine_disconnect")
Exemple #5
0
 def on_disconnect(self):
     """
     The engine node disconnected from the message bus.
     This will wake the main loop.
     """
     Engine.on_disconnect(self)
     log.info('Exiting process')
     self._exit = True
     self.stop_code(quiet=True)
     self._codeevent.set() #trigger the event to wake up the mainloop