From: Pascale Noyret Date: Tue, 23 Oct 2007 13:37:45 +0000 (+0000) Subject: PN : evolution fiche eficas/aster 11308 X-Git-Tag: V1_13b1~47 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e238cbbb11ad19fc33d03026b022d1c7755cbc24;p=modules%2Feficas.git PN : evolution fiche eficas/aster 11308 --- diff --git a/InterfaceQT/monPlusieursASSDPanel.py b/InterfaceQT/monPlusieursASSDPanel.py index ea02fca7..92ec2b6c 100644 --- a/InterfaceQT/monPlusieursASSDPanel.py +++ b/InterfaceQT/monPlusieursASSDPanel.py @@ -55,6 +55,8 @@ class MonPlusieursASSDPanel(MonPlusieursIntoPanel): self.listBoxVal.clear() for aSD in listeNomsSD: self.listBoxVal.insertItem( aSD) + if len(listeNomsSD) == 1 : + self.listBoxVal.setSelected(0,1) def DisplayListBoxCourantes(self): self.LBValeurs.clear() diff --git a/InterfaceQT/qtSaisie.py b/InterfaceQT/qtSaisie.py index aa112a45..14d37373 100644 --- a/InterfaceQT/qtSaisie.py +++ b/InterfaceQT/qtSaisie.py @@ -57,6 +57,8 @@ class SaisieValeur: lChoix=self.node.item.get_liste_possible(listeDejaLa) for valeur in lChoix : self.listBoxVal.insertItem( str(valeur) ) + if len(lChoix) == 1 : + self.listBoxVal.setSelected(0,1) def ClicASSD(self): valeurQstring=self.listBoxASSD.selectedItem().text()