From: pascale.noyret Date: Fri, 23 Oct 2020 07:19:03 +0000 (+0200) Subject: partage Eric X-Git-Tag: MDM_V0.1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d23df133117bdfe805a3edbda901f47317e2f3bb;p=tools%2Feficas.git partage Eric --- diff --git a/InterfaceQT4/monWidgetPlusieursBase.py b/InterfaceQT4/monWidgetPlusieursBase.py index 10abc607..ee3ea901 100644 --- a/InterfaceQT4/monWidgetPlusieursBase.py +++ b/InterfaceQT4/monWidgetPlusieursBase.py @@ -110,6 +110,8 @@ class MonWidgetPlusieursBase (Ui_WidgetPlusieursBase,Feuille,GereListe,GerePlie) self.finCommentaireListe() self.monCommentaireLabel.setText(self.finCommentaireListe()) self.scrollArea.leaveEvent = self.leaveEventScrollArea + self.selectLE(len(self.listeValeursCourantes)+1) + print ('iiiiiiiiiiiiiiiiiiiiiiiii') @@ -161,6 +163,12 @@ class MonWidgetPlusieursBase (Ui_WidgetPlusieursBase,Feuille,GereListe,GerePlie) if self.inInit==False :QTimer.singleShot(1, self.rendVisibleLigne) #print ('ajoutLineEdit, monWidgetPlusieursBase', self.indexDernierLabel) + def selectLE(self, int): + nomLineEdit="lineEditVal"+str(int) + if hasattr(self,nomLineEdit) : + aSelect=getattr(self,nomLineEdit) + #aSelect.select() + def etablitOrdre(self): i=0 while(i +1 < len(self.listeAffichageWidget)): diff --git a/Noyau/N_MCSIMP.py b/Noyau/N_MCSIMP.py index 5cc31129..83c7b41f 100644 --- a/Noyau/N_MCSIMP.py +++ b/Noyau/N_MCSIMP.py @@ -137,7 +137,7 @@ class MCSIMP(N_OBJECT.OBJECT): while p in self.parent : print ('mise a jour de ',p) if hasattr(p, 'listeDesReferencesCrees') : p.listeDesReferencesCrees.append(objVal) - else : p.listeDesReferencesCrees=(objVal,) + else : p.listeDesReferencesCrees=[objVal,] p=p.parent return (self.setValeur(objVal), 'reference creee') @@ -157,7 +157,7 @@ class MCSIMP(N_OBJECT.OBJECT): p=self.parent while p in self.parent : if hasattr(p, 'listeDesReferencesCrees') : p.listeDesReferencesCrees.append(objASSD) - else : p.listeDesReferencesCrees=(objASSD,) + else : p.listeDesReferencesCrees=[objASSD,] p=p.parent