# coding: gb2312 import demo_dataset from LSZXPagesLibrary.consensus import * from LSZXPagesLibrary.running_page_layout_define import RunningPageLayoutDefine from PureBackend.global_execrise_backend import GEB class RunningPage(RunningPageLayoutDefine): def __init__(self): super(RunningPage, self).__init__() self.eb = GEB().get_geb() # 注册返回界面的按钮 self.back_home_button.clicked.connect(self.back_home) # 注册基站定位界面响应动作 self.next_page_button.clicked.connect(self.next_page_action) def refresh(self) -> None: exercise_type = self.data.get(EXERCISE_TYPE) if exercise_type: exercise_name = EXERCISE_TYPE_TABLE[exercise_type] self.title_label.setText(exercise_name) self.tags_switch_selector.set_person(_person_list=self.data.get(PERSON_LIST)) def back_home(self): self.jump2(HOME_PAGE) def next_page_action(self): running_mes = self.eb.running_master_mode() pkg = { EXERCISE_TYPE: self.data[EXERCISE_TYPE], ANCHORS_DATA: running_mes, PERSON_LIST: self.data[PERSON_LIST] } self.jump2(BASE_STATION_PAGE, pkg)