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("")
def __init__(self,node,monSimpDef,nom,objSimp,parentQt,commande):
#print "MonWidgetPlusieursBase", nom
+ self.inFocusOutEvent=False
self.nomLine="lineEditVal"
self.inInit=True
self.indexDernierLabel=0
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()
"""
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
"""
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()