优化了所有按钮的点击体验
This commit is contained in:
@ -25,12 +25,53 @@ from func.utils.Constants import Constants
|
||||
|
||||
|
||||
use("QtAgg")
|
||||
# style.use('dark_background')
|
||||
|
||||
# rcParams.update({
|
||||
# 'figure.facecolor': '#f5f5dc',
|
||||
# 'axes.facecolor': '#f5f5dc'
|
||||
# })
|
||||
|
||||
|
||||
Config = {
|
||||
|
||||
}
|
||||
|
||||
ButtonState = {
|
||||
"Default": {
|
||||
"pushButton_open": True,
|
||||
"pushButton_approximately_align": True,
|
||||
"pushButton_preprocess_BCG": True,
|
||||
"pushButton_preprocess_ECG": True,
|
||||
"pushButton_detect_Jpeak": True,
|
||||
"pushButton_detect_Rpeak": True,
|
||||
"pushButton_label_check_BCG": True,
|
||||
"pushButton_label_check_ECG": True,
|
||||
"pushButton_precisely_align": True,
|
||||
"pushButton_cut_PSG": True,
|
||||
"pushButton_artifact_label": True,
|
||||
"pushButton_bcg_quality_label": True,
|
||||
"pushButton_resp_quality_label": True,
|
||||
"pushButton_SA_label": True
|
||||
},
|
||||
"Current": {
|
||||
"pushButton_open": True,
|
||||
"pushButton_approximately_align": True,
|
||||
"pushButton_preprocess_BCG": True,
|
||||
"pushButton_preprocess_ECG": True,
|
||||
"pushButton_detect_Jpeak": True,
|
||||
"pushButton_detect_Rpeak": True,
|
||||
"pushButton_label_check_BCG": True,
|
||||
"pushButton_label_check_ECG": True,
|
||||
"pushButton_precisely_align": True,
|
||||
"pushButton_cut_PSG": True,
|
||||
"pushButton_artifact_label": True,
|
||||
"pushButton_bcg_quality_label": True,
|
||||
"pushButton_resp_quality_label": True,
|
||||
"pushButton_SA_label": True
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
class MainWindow(QMainWindow, Ui_Signal_Label):
|
||||
|
||||
@ -69,6 +110,8 @@ class MainWindow(QMainWindow, Ui_Signal_Label):
|
||||
self.resp_quality_label = None
|
||||
self.SA_label = None
|
||||
|
||||
PublicFunc.__styleAllButton__(self, ButtonState)
|
||||
|
||||
# 绑定槽函数
|
||||
self.ui.pushButton_open.clicked.connect(self.__slot_btn_open__)
|
||||
self.ui.pushButton_approximately_align.clicked.connect(self.__slot_btn_approximately_align__)
|
||||
|
||||
Reference in New Issue
Block a user