本文整理汇总了Python中engine.Engine.on_disconnect方法的典型用法代码示例。如果您正苦于以下问题:Python Engine.on_disconnect方法的具体用法?Python Engine.on_disconnect怎么用?Python Engine.on_disconnect使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类engine.Engine
的用法示例。
在下文中一共展示了Engine.on_disconnect方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: on_disconnect
# 需要导入模块: from engine import Engine [as 别名]
# 或者: from engine.Engine import on_disconnect [as 别名]
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')
示例2: on_disconnect
# 需要导入模块: from engine import Engine [as 别名]
# 或者: from engine.Engine import on_disconnect [as 别名]
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))
示例3: on_disconnect
# 需要导入模块: from engine import Engine [as 别名]
# 或者: from engine.Engine import on_disconnect [as 别名]
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)
示例4: on_disconnect
# 需要导入模块: from engine import Engine [as 别名]
# 或者: from engine.Engine import on_disconnect [as 别名]
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")
示例5: on_disconnect
# 需要导入模块: from engine import Engine [as 别名]
# 或者: from engine.Engine import on_disconnect [as 别名]
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