X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=InterfaceQT4%2FmonWidgetSimpBase.py;h=a03db34afa14c7fdd7fb1f8bbf33894d05ae4671;hb=e570dff249a11579eb7d33de376ed71be16d7261;hp=cb79fd3e3011286faa48f613ee00376e591807b4;hpb=df0e1a1f57e70d3d99dd7fb381845500c3d3c6dd;p=tools%2Feficas.git diff --git a/InterfaceQT4/monWidgetSimpBase.py b/InterfaceQT4/monWidgetSimpBase.py index cb79fd3e..a03db34a 100644 --- a/InterfaceQT4/monWidgetSimpBase.py +++ b/InterfaceQT4/monWidgetSimpBase.py @@ -38,14 +38,16 @@ class MonWidgetSimpBase (Ui_WidgetSimpBase,Feuille): self.parentQt.commandesLayout.insertWidget(-1,self) self.setFocusPolicy(Qt.StrongFocus) self.connect(self.lineEditVal,SIGNAL("returnPressed()"),self.LEValeurPressed) + self.AAfficher=self.lineEditVal self.maCommande.listeAffichageWidget.append(self.lineEditVal) - def showEvent(self, event): - if self.prendLeFocus==1 : - self.activateWindow() - self.lineEditVal.setFocus() - self.prendLeFocus=0 - QWidget.showEvent(self,event) + + #def showEvent(self, event): + # if self.prendLeFocus==1 : + # self.activateWindow() + # self.lineEditVal.setFocus() + # self.prendLeFocus=0 + # QWidget.showEvent(self,event) def setValeurs(self): self.politique=PolitiqueUnique(self.node,self.editor) @@ -88,6 +90,7 @@ class MonWidgetSimpBase (Ui_WidgetSimpBase,Feuille): SaisieValeur.LEValeurPressed(self) self.parentQt.donneFocus() self.setValeurs() + self.reaffiche() #if self.objSimp.parent.nom == "MODEL" : # if self.objSimp.isvalid():