0623更新

main
ZHANGXUXU\95193 1 year ago
parent e2cb748abc
commit 7cc3cecc00

@ -218,7 +218,8 @@ class VarButtonDelegate(QItemDelegate):
blockManage = Globals.getValue('blockManage') blockManage = Globals.getValue('blockManage')
if modelIndex or str(modelIndex) == '0' : if modelIndex or str(modelIndex) == '0' :
value = modelIndex values = modelIndex
self.refreshData(modelIndex)
else: else:
parmIndex = model.datas[sender.index[0]][0] parmIndex = model.datas[sender.index[0]][0]
@ -240,7 +241,7 @@ class VarButtonDelegate(QItemDelegate):
QMessageBox.Yes) QMessageBox.Yes)
return return
res = blockManage.writeParmValue(blockType, blockIndex, parmIndex, values) res = blockManage.writeParmValue(blockType, blockIndex, parmIndex, values)
self.refreshData()
def refreshData(self, modelIndex = None): def refreshData(self, modelIndex = None):
sender = self.sender() sender = self.sender()

Loading…
Cancel
Save