0731-更新

main
parent 85c3488b38
commit b448dade02

@ -190,9 +190,13 @@ class TcRtdButtonDelegate(VarButtonDelegate):
QMessageBox.Yes)
return
mv = temToMv(varType, float(value))
mv += float(compensation)
if not mv and mv != 0:
reply = QMessageBox.question(self.parent(),
'警告',
"输入值有误",
QMessageBox.Yes)
return
mv += float(compensation)
model.table.mvList[sender.index[0]] = mv
model.table.valueList[sender.index[0]] = float(value)
forceVars = Globals.getValue('forceVars')

Loading…
Cancel
Save