main.py 文件源码

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

项目:webkivy 作者: miohtama 项目源码 文件源码
def run_script(self):
        self.write_settings()

        url = self.root.get_screen("landing").ids.url.text

        try:

            if not self.loader.has_original_state():
                self.loader.record_original_state()

            self.loader.reset()

            result = self.loader.load_and_run(url)

            if not isinstance(result, Screen):
                raise RuntimeError("Entry point did not return kivy.uix.screenmanager.Screen")

            self.root.switch_to(result)

            # TODO: Loader keeps leaving tmp folders around, make sure they are cleaned up

        except Exception as e:
            show_exception(e)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号