__init__.py 文件源码

python
阅读 17 收藏 0 点赞 0 评论 0

项目:continuum 作者: zyantific 项目源码 文件源码
def enable_asyncore_loop(self):
        """Hooks our asyncore loop into Qt's event queue."""
        def beat():
            asyncore.loop(count=1, timeout=0)

        # Yep, this isn't especially real-time IO, but it's fine for what we do.
        timer = QTimer()
        timer.timeout.connect(beat)
        timer.setSingleShot(False)
        timer.setInterval(15)
        timer.start()

        self._timer = timer
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号