From b448dade02037042ac890504a59f4fa962019007 Mon Sep 17 00:00:00 2001 From: "ADMINISTRATOR\\Administrator" Date: Mon, 31 Jul 2023 14:42:30 +0800 Subject: [PATCH] =?UTF-8?q?0731-=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- UI/VarManages/TCRTDModel.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/UI/VarManages/TCRTDModel.py b/UI/VarManages/TCRTDModel.py index e99864a..1548946 100644 --- a/UI/VarManages/TCRTDModel.py +++ b/UI/VarManages/TCRTDModel.py @@ -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')