script_task.py 386 B

123456789101112131415
  1. # This Python file uses the following encoding: utf-8
  2. # @author runhey
  3. # github https://github.com/runhey
  4. from tasks.GameUi.game_ui import GameUi
  5. from tasks.GameUi.page import page_main
  6. from module.exception import TaskEnd
  7. class ScriptTask(GameUi):
  8. def run(self) -> None:
  9. self.ui_get_current_page()
  10. self.ui_goto(page_main)
  11. raise TaskEnd('Goto main end')