当前位置: 首页>>代码示例>>Python>>正文


Python Engine.on_disconnect方法代码示例

本文整理汇总了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')
开发者ID:tito2016,项目名称:Python-Project,代码行数:9,代码来源:tk_engine.py

示例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))
开发者ID:tito2016,项目名称:Python-Project,代码行数:9,代码来源:pyside_engine.py

示例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)
开发者ID:tito2016,项目名称:Python-Project,代码行数:10,代码来源:internal_engine.py

示例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")
开发者ID:tito2016,项目名称:Python-Project,代码行数:10,代码来源:gtk_engine.py

示例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
开发者ID:tito2016,项目名称:Python-Project,代码行数:12,代码来源:py_engine.py


注:本文中的engine.Engine.on_disconnect方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。