# coding: gb2312 from LSZXPagesManagerLibrary.band_page_layout_define import BandPageLayoutDefine from LSZXPagesManagerLibrary.pop_band_alarm_dialog import PopBandAlarmDialog from PureBackend.global_execrise_backend import GEB class BandPage(BandPageLayoutDefine): def __init__(self): super(BandPage, self).__init__() self.close_all_band_button.clicked.connect(self.close_all_band_action) self.stop_band_alarm_button.clicked.connect(self.stop_band_alarm_action) self.stop_all_band_alarm_button.clicked.connect(self.stop_all_band_alarm_action) # 关闭指定手环警报人员名单弹窗 self.message_pop_windows = PopBandAlarmDialog(self) self.message_pop_windows.connect(self.message_pop_commit) # 预加载geb模块 self.eb = GEB().get_geb() def close_all_band_action(self): self.eb.close_all_band() # print("点击关闭所有手环电源按钮事件") def stop_band_alarm_action(self): # print("点击关闭指定手环警报按钮事件") data = self.eb.get_all_person() self.message_pop_windows.show(data) def stop_all_band_alarm_action(self): self.eb.stop_all_band_alarm() # print("点击关闭所有手环警报按钮事件") # 弹窗点击了确定按钮事件 def message_pop_commit(self): # 跳转 print("确定")