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)
评论列表
文章目录