From ddcc146bb0a7aaf229874bb1734a871d58058ef3 Mon Sep 17 00:00:00 2001 From: "pascale.noyret" Date: Fri, 5 May 2017 17:07:05 +0200 Subject: [PATCH] anomalie 13688 --- InterfaceQT4/monWidgetSimpBase.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/InterfaceQT4/monWidgetSimpBase.py b/InterfaceQT4/monWidgetSimpBase.py index 37b51296..78fc1a75 100644 --- a/InterfaceQT4/monWidgetSimpBase.py +++ b/InterfaceQT4/monWidgetSimpBase.py @@ -46,12 +46,18 @@ class MonWidgetSimpBase (Ui_WidgetSimpBase,Feuille): self.AAfficher=self.lineEditVal self.maCommande.listeAffichageWidget.append(self.lineEditVal) self.lineEditVal.focusInEvent=self.monFocusInEvent + self.lineEditVal.focusOutEvent=self.monFocusOutEvent def monFocusInEvent(self,event): self.editor.nodeEnCours = self QLineEdit.focusInEvent(self.lineEditVal,event) + def monFocusOutEvent(self,event): + if self.oldValeurTexte != self.lineEditVal.text(): + self.LEValeurPressed() + self.oldValeurTexte= self.lineEditVal.text() + QLineEdit.focusOutEvent(self.lineEditVal,event) #def showEvent(self, event): # if self.prendLeFocus==1 : @@ -79,6 +85,7 @@ class MonWidgetSimpBase (Ui_WidgetSimpBase,Feuille): # chaine=QString("").setNum(valeurTexte) #except : chaine=str(valeurTexte) + self.oldValeurTexte=chaine self.lineEditVal.setText(chaine) -- 2.39.2