Merge branch 'cxh_dev'
# Conflicts: # func/Module_mainwindow.py
This commit is contained in:
@ -38,12 +38,17 @@ class ConfigParams:
|
||||
"AbdFreq": 100
|
||||
},
|
||||
"ApplyFrequency": 5,
|
||||
"TempFrequency": 100,
|
||||
"Filter": {
|
||||
"BandPassOrder": 4,
|
||||
"BandPassLow": 0.01,
|
||||
"BandPassHigh": 0.7
|
||||
},
|
||||
"Multiple_Factor":100
|
||||
"Multiple_Factor":100,
|
||||
"CorrByEpoch":
|
||||
{
|
||||
"window_epoch": 6
|
||||
}
|
||||
}
|
||||
APPROXIMATELY_ALIGN_INPUT_ORGBCG_FILENAME: str = "OrgBCG_Raw_"
|
||||
APPROXIMATELY_ALIGN_INPUT_THO_FILENAME: str = "Effort Tho_Raw_"
|
||||
|
||||
@ -118,6 +118,9 @@ class Constants:
|
||||
|
||||
APPROXIMATELY_ALIGN_FAILURE_REASON = {
|
||||
"Data_Path_Not_Exist": "(路径不存在)",
|
||||
"Data_File_Not_Exist": "(数据文件不存在)",
|
||||
"Data_File_More_Than_One": "(数据文件超过一个)",
|
||||
"Data_Frequency_Not_In_Filename": "(数据频率不在文件名中)",
|
||||
"Read_Data_Exception": "(读取数据异常)",
|
||||
"Raw_Data_Not_Exist": "(原始数据不存在)",
|
||||
"Only_Resample_Exception": "(仅重采样异常)",
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
from datetime import datetime
|
||||
from logging import error, info
|
||||
|
||||
from PySide6.QtWidgets import QMessageBox, QWidget, QPushButton, QProgressBar, QApplication
|
||||
from PySide6.QtWidgets import QMessageBox, QWidget, QPushButton, QProgressBar, QApplication, QRadioButton
|
||||
|
||||
from func.utils.Constants import Constants
|
||||
from func.utils.CustomException import TipsTypeValueNotExistError, MsgBoxTypeValueNotExistError
|
||||
@ -106,6 +106,10 @@ class PublicFunc:
|
||||
if widget.objectName() in buttonState["Current"].keys():
|
||||
widget.setEnabled(False)
|
||||
|
||||
if isinstance(widget, QRadioButton):
|
||||
if widget.objectName() in buttonState["Current"].keys():
|
||||
widget.setEnabled(False)
|
||||
|
||||
@staticmethod
|
||||
def __enableAllButton__(mainWindow, buttonState):
|
||||
# 启用按钮
|
||||
@ -117,6 +121,10 @@ class PublicFunc:
|
||||
if widget.objectName() in buttonState["Current"].keys():
|
||||
widget.setEnabled(buttonState["Current"][widget.objectName()])
|
||||
|
||||
if isinstance(widget, QRadioButton):
|
||||
if widget.objectName() in buttonState["Current"].keys():
|
||||
widget.setEnabled(buttonState["Current"][widget.objectName()])
|
||||
|
||||
@staticmethod
|
||||
def __resetAllButton__(mainWindow, buttonState):
|
||||
# 启用按钮
|
||||
@ -128,6 +136,10 @@ class PublicFunc:
|
||||
if widget.objectName() in buttonState["Default"].keys():
|
||||
widget.setEnabled(buttonState["Default"][widget.objectName()])
|
||||
|
||||
if isinstance(widget, QRadioButton):
|
||||
if widget.objectName() in buttonState["Default"].keys():
|
||||
widget.setEnabled(buttonState["Default"][widget.objectName()])
|
||||
|
||||
@staticmethod
|
||||
def add_progressbar(mainWindow):
|
||||
mainWindow.progressbar = QProgressBar()
|
||||
|
||||
Reference in New Issue
Block a user