From: pascale.noyret Date: Tue, 22 Nov 2016 10:14:01 +0000 (+0100) Subject: close du frame recherche si petite liste X-Git-Tag: Salome_8_3_Hydro_2_0rc1~115 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=07d3d286fca1060db90d2f3a0a616c11624ff30d;p=modules%2Feficas.git close du frame recherche si petite liste --- diff --git a/InterfaceQT4/monWidgetPlusieursInto.py b/InterfaceQT4/monWidgetPlusieursInto.py index d667acc8..8afddf0c 100644 --- a/InterfaceQT4/monWidgetPlusieursInto.py +++ b/InterfaceQT4/monWidgetPlusieursInto.py @@ -73,7 +73,7 @@ class MonWidgetPlusieursInto (Ui_WidgetPlusieursInto,Feuille,GerePlie,GereListe) spacerItem2 = QSpacerItem(40, 70, QSizePolicy.Fixed, QSizePolicy.Minimum) self.CBLayout.addItem(spacerItem2) - if len(self.listeAAfficher) < 8 : self.frameRecherche.close() + if len(self.listeAAfficher) < 25 : self.frameRecherche.close() # try except si la liste des possibles est vide # prevoir qqchose try : diff --git a/InterfaceQT4/monWidgetPlusieursIntoOrdonne.py b/InterfaceQT4/monWidgetPlusieursIntoOrdonne.py index 46d06079..c7e9451d 100644 --- a/InterfaceQT4/monWidgetPlusieursIntoOrdonne.py +++ b/InterfaceQT4/monWidgetPlusieursIntoOrdonne.py @@ -109,6 +109,7 @@ class MonWidgetPlusieursIntoOrdonne (Ui_WidgetPlusieursIntoOrdonne, Feuille,Gere courant=getattr(self,nomLE) courant.setText(str(self.listeAAfficher[i])) self.vScrollBar.triggerAction(QScrollBar.SliderToMinimum) + if len(self.listeAAfficher) < 25 and hasattr(self,'frameRecherche') : self.frameRecherche.close() def setValeurs(self):