优化了重置绘图的代码
This commit is contained in:
@ -16,6 +16,7 @@ from func.Module_label_check import MainWindow_label_check
|
||||
from func.Module_precisely_align import MainWindow_precisely_align
|
||||
from func.Module_cut_PSG import MainWindow_cut_PSG
|
||||
from func.Module_artifact_label import MainWindow_artifact_label
|
||||
from func.Module_resp_quality_label import MainWindow_resp_quality_label
|
||||
from func.Module_SA_label import MainWindow_SA_label
|
||||
|
||||
from func.utils.Constants import Constants, ConfigParams
|
||||
@ -62,7 +63,7 @@ class MainWindow(QMainWindow, Ui_Signal_Label):
|
||||
self.precisely_align = None
|
||||
self.cut_PSG = None
|
||||
self.artifact_label = None
|
||||
|
||||
self.resp_quality_label = None
|
||||
self.SA_label = None
|
||||
|
||||
# 绑定槽函数
|
||||
@ -77,6 +78,7 @@ class MainWindow(QMainWindow, Ui_Signal_Label):
|
||||
self.ui.pushButton_precisely_align.clicked.connect(self.__slot_btn_precisely_align__)
|
||||
self.ui.pushButton_cut_PSG.clicked.connect(self.__slot_btn_cut_PSG__)
|
||||
self.ui.pushButton_artifact_label.clicked.connect(self.__slot_btn_artifact_label__)
|
||||
self.ui.pushButton_resp_quality_label.clicked.connect(self.__slot_btn_resp_quality_label__)
|
||||
self.ui.pushButton_SA_label.clicked.connect(self.__slot_btn_SA_label__)
|
||||
|
||||
@staticmethod
|
||||
@ -222,6 +224,18 @@ class MainWindow(QMainWindow, Ui_Signal_Label):
|
||||
# 默认最大化显示而非固定分辨率
|
||||
self.artifact_label.showMaximized()
|
||||
|
||||
def __slot_btn_resp_quality_label__(self):
|
||||
self.resp_quality_label = MainWindow_resp_quality_label()
|
||||
root_path = self.ui.plainTextEdit_root_path.toPlainText()
|
||||
sampID = self.ui.comboBox_sampID.currentText()
|
||||
if not self.check_root_path():
|
||||
return
|
||||
if not self.check_sampID():
|
||||
return
|
||||
self.resp_quality_label.show(root_path, int(sampID))
|
||||
# 默认最大化显示而非固定分辨率
|
||||
self.resp_quality_label.showMaximized()
|
||||
|
||||
def __slot_btn_SA_label__(self):
|
||||
self.SA_label = MainWindow_SA_label()
|
||||
root_path = self.ui.plainTextEdit_root_path.toPlainText()
|
||||
|
||||
Reference in New Issue
Block a user