From e188a91816a934fae78520eab7d20c475aa13f74 Mon Sep 17 00:00:00 2001 From: "pascale.noyret" Date: Fri, 23 Oct 2020 09:19:03 +0200 Subject: [PATCH] partage Eric --- InterfaceQT4/monWidgetPlusieursBase.py | 8 ++++++++ Noyau/N_MCSIMP.py | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) 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 -- 2.39.2