|
|
|
|
@ -278,11 +278,14 @@ class ProjectButtonDelegate(QItemDelegate):
|
|
|
|
|
print(f"初始化模型表 {l} 失败: {e}")
|
|
|
|
|
|
|
|
|
|
Globals.clearValue('forceVars')#清除颜色
|
|
|
|
|
|
|
|
|
|
profibusTabWidgets = ['DP主站', 'DP从站', 'PA主站', 'PA从站']
|
|
|
|
|
for widget in profibusTabWidgets:
|
|
|
|
|
Globals.getValue(widget).switchProject()
|
|
|
|
|
QtWidgets.QApplication.processEvents()
|
|
|
|
|
|
|
|
|
|
try:
|
|
|
|
|
profibusTabWidgets = ['DP主站', 'DP从站', 'PA主站', 'PA从站']
|
|
|
|
|
for widget in profibusTabWidgets:
|
|
|
|
|
Globals.getValue(widget).switchProject()
|
|
|
|
|
QtWidgets.QApplication.processEvents()
|
|
|
|
|
except:
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
progress.close()
|
|
|
|
|
QtWidgets.QApplication.processEvents()
|
|
|
|
|
|