Salome HOME
linux/windows
[tools/eficas.git] / InterfaceQT4 / monWidgetSimpComplexe.py
index 5e219dc58950989e638761820e64a6034324fd80..64ccda81f6aa5b65f6936e28f3c48dde10faa9ef 100644 (file)
@@ -33,8 +33,8 @@ from qtSaisie               import SaisieValeur
 
 class MonWidgetSimpComplexe (Ui_WidgetSimpComplexe,Feuille):
 
-  def __init__(self,node,monSimpDef,nom,objSimp,parentQt):
-        Feuille.__init__(self,node,monSimpDef,nom,objSimp,parentQt)
+  def __init__(self,node,monSimpDef,nom,objSimp,parentQt,commande):
+        Feuille.__init__(self,node,monSimpDef,nom,objSimp,parentQt,commande)
         self.parentQt.commandesLayout.insertWidget(-1,self)
         self.setFocusPolicy(Qt.StrongFocus)
         self.connect(self.LEImag,SIGNAL("returnPressed()"),self.LEImagRPressed)
@@ -42,6 +42,11 @@ class MonWidgetSimpComplexe (Ui_WidgetSimpComplexe,Feuille):
         self.connect(self.RBRI,SIGNAL("clicked()"), self.ValeurPressed )
         self.connect(self.RBMP,SIGNAL("clicked()"), self.ValeurPressed )
         self.connect(self.LEComp,SIGNAL("returnPressed()"),self.LECompRPressed)
+        self.maCommande.listeAffichageWidget.append(self.LEComp)
+        #self.maCommande.listeAffichageWidget.append(self.RBRI)
+        #self.maCommande.listeAffichageWidget.append(self.RBMP)
+        #self.maCommande.listeAffichageWidget.append(self.LEReel)
+        #self.maCommande.listeAffichageWidget.append(self.LEImag)
 
 
   def setValeurs(self):
@@ -137,6 +142,7 @@ class MonWidgetSimpComplexe (Ui_WidgetSimpComplexe,Feuille):
               return
           valeur=  self.getValeurComp()
       self.politique.RecordValeur(valeur)
+      self.reaffiche()
       self.parentQt.donneFocus()
 
   def getValeurRI(self):