Salome HOME
Pour V1 Carmel
[tools/eficas.git] / InterfaceQT4 / monWidgetSimpBase.py
index cb79fd3e3011286faa48f613ee00376e591807b4..a03db34afa14c7fdd7fb1f8bbf33894d05ae4671 100644 (file)
@@ -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():