]> SALOME platform Git repositories - modules/eficas.git/commitdiff
Salome HOME
abort sinon
authorpascale.noyret <pascale.noyret@edf.fr>
Wed, 17 May 2017 11:49:27 +0000 (13:49 +0200)
committerpascale.noyret <pascale.noyret@edf.fr>
Wed, 17 May 2017 11:49:27 +0000 (13:49 +0200)
InterfaceQT4/gereListe.py
InterfaceQT4/monWidgetPlusieursBase.py
InterfaceQT4/qtEficas.py

index 65b701cb83b5558746885facbc962a53d1543eae..5faaf5d9d342976cfa6fa497accfcccccdce3a0d 100644 (file)
@@ -69,11 +69,20 @@ class LECustom(QLineEdit):
      else                   : self.setStyleSheet("background:rgb(235,235,235)")
        
     
-     if isinstance(self,LECustomTuple)  and  not self.tupleCustomParent.inFocusOutEvent:
-         self.tupleCustomParent.inFocusOutEvent=True
-         self.tupleCustomParent.valueChange()
-         self.tupleCustomParent.inFocusOutEvent=False
-     QLineEdit.focusOutEvent(self,event)
+     
+     from InterfaceQT4.monWidgetPlusieursBase import MonWidgetPlusieursBase
+     try :
+       #if isinstance (self.parentQt, MonWidgetPlusieursBase) and not self.parentQt.inFocusOutEvent : 
+       #  self.parentQt.inFocusOutEvent=True
+       #  self.parentQt.changeValeur(changeDePlace=True,oblige=False)
+       #  self.parentQt.inFocusOutEvent=False
+
+       #if isinstance(self,LECustomTuple)  and  not self.tupleCustomParent.inFocusOutEvent:
+       #  self.tupleCustomParent.inFocusOutEvent=True
+       #  self.tupleCustomParent.valueChange()
+       #  self.tupleCustomParent.inFocusOutEvent=False
+       QLineEdit.focusOutEvent(self,event)
+     except : pass
 
  def clean(self):
      self.setText("")
index a9fe55119a59574ec83cc781fcd02d13b11fe8f1..b45e6a0637e990b47d945c0e24c8486c09cf8361 100644 (file)
@@ -50,6 +50,7 @@ class MonWidgetPlusieursBase (Ui_WidgetPlusieursBase,Feuille,GereListe,GerePlie)
 
   def __init__(self,node,monSimpDef,nom,objSimp,parentQt,commande):
         #print "MonWidgetPlusieursBase", nom
+        self.inFocusOutEvent=False
         self.nomLine="lineEditVal"
         self.inInit=True
         self.indexDernierLabel=0
@@ -141,6 +142,7 @@ class MonWidgetPlusieursBase (Ui_WidgetPlusieursBase,Feuille,GereListe,GerePlie)
       else :                              nouveauLE.setStyleSheet("background:rgb(235,235,235)")
       nouveauLE.setFrame(False)
       nouveauLE.returnPressed.connect(self.changeValeur)
+
       setattr(self,nomLineEdit,nouveauLE)
       self.listeAffichageWidget.append(nouveauLE)
       self.etablitOrdre()
index e7ba8511fd6dcab837215b3637efbc537b2ac770..ced79316317932dcd097893a1a85079cd659349b 100755 (executable)
@@ -48,7 +48,7 @@ class Appli(Ui_Eficas,QMainWindow):
     """
     Class implementing the main user interface.
     """
-    def __init__(self,code=None,salome=0,parent=None,ssCode=None,multi=False,langue='fr',ssIhm=False):
+    def __init__(self,code=None,salome=0,parent=None,ssCode=None,multi=False,langue='ang',ssIhm=False):
         """
         Constructor
         """
@@ -395,8 +395,12 @@ class Appli(Ui_Eficas,QMainWindow):
         self.menuOptions.setTitle(tr("Options"))
 
     def PSEN(self):
-        if self.first: self.first=0
-        self.action_Nouveau.triggered.disconnect(self.fileNew)
+        if self.first:  self.first=0
+        try : self.action_Nouveau.triggered.disconnect(self.fileNew)
+        except : pass
+        try : self.action_Nouveau.triggered.disconnect(self.newPSEN)
+        except : pass
+
         self.action_Nouveau.triggered.connect(self.newPSEN)
         self.enleverActionsStructures()
         self.enleverParametres()