|
|
|
|
@ -279,10 +279,13 @@ class ProjectButtonDelegate(QItemDelegate):
|
|
|
|
|
|
|
|
|
|
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()
|
|
|
|
|
|