base.py 文件源码

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

项目:cryptogram 作者: xinmingzhang 项目源码 文件源码
def run(self):
        '''Begin processing events, scheduled functions and window updates.

        This method returns when `has_exit` is set to True.

        Developers are discouraged from overriding this method, as the
        implementation is platform-specific.
        '''
        self.has_exit = False
        self._legacy_setup()

        platform_event_loop = app.platform_event_loop
        platform_event_loop.start()
        self.dispatch_event('on_enter')

        self.is_running = True
        if compat_platform == 'win32' and int(platform.win32_ver()[0]) <= 5:
            self._run_estimated()
        else:
            self._run()
        self.is_running = False

        self.dispatch_event('on_exit')
        platform_event_loop.stop()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号