LISHUZUOXUN_yangjiang/LSZXPagesLibrary/running_page.py

36 lines
1.2 KiB
Python
Raw Normal View History

2024-09-23 14:54:15 +08:00
# 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()
# ע<><EFBFBD>ؽ<EFBFBD><D8BD><EFBFBD><EFBFBD>İ<EFBFBD>ť
self.back_home_button.clicked.connect(self.back_home)
# ע<><D7A2><EFBFBD><EFBFBD>վ<EFBFBD><D5BE>λ<EFBFBD><CEBB><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ӧ<EFBFBD><D3A6><EFBFBD><EFBFBD>
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)