main
zcwBit 1 month ago
parent 3975f0be05
commit 961e4969d8

@ -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()

@ -40,7 +40,7 @@ class RpcVarModel(QAbstractTableModel):
]
temp.append(row)
# 按类型排序
temp.sort(key=lambda x: x[3])
temp.sort(key=lambda x: str(x[3]))
self.datas = temp
self.table.proxy.invalidate()

Loading…
Cancel
Save