From e238cbbb11ad19fc33d03026b022d1c7755cbc24 Mon Sep 17 00:00:00 2001 From: Pascale Noyret Date: Tue, 23 Oct 2007 13:37:45 +0000 Subject: [PATCH] PN : evolution fiche eficas/aster 11308 --- InterfaceQT/monPlusieursASSDPanel.py | 2 ++ InterfaceQT/qtSaisie.py | 2 ++ 2 files changed, 4 insertions(+) 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() -- 2.39.2