From: Pascale Noyret Date: Thu, 17 Nov 2011 14:16:12 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: LOGILAB~275 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=09083013c7f1db9cc66f5fa79d18d1f9a6f616b4;p=tools%2Feficas.git *** empty log message *** --- diff --git a/InterfaceQT4/monPlusieursASSDPanel.py b/InterfaceQT4/monPlusieursASSDPanel.py index 46a54da6..2d56011b 100644 --- a/InterfaceQT4/monPlusieursASSDPanel.py +++ b/InterfaceQT4/monPlusieursASSDPanel.py @@ -76,7 +76,10 @@ class MonPlusieursASSDPanel(MonPlusieursIntoPanel): if self.listeValeursCourantes == [] : self.editor.affiche_infos("Pas de Validation d un groupe vide",Qt.red) return - if len(self.listeValeursCourantes) == 1 : self.listeValeursCourantes=self.listeValeursCourantes[0] + try : + if len(self.listeValeursCourantes) == 1 : self.listeValeursCourantes=self.listeValeursCourantes[0] + except : + pass self.node.item.set_valeur(self.listeValeursCourantes) self.editor.affiche_infos("Valeur Acceptée") pass diff --git a/InterfaceQT4/qtEficas.py b/InterfaceQT4/qtEficas.py index eca8f1e6..6a951cb4 100644 --- a/InterfaceQT4/qtEficas.py +++ b/InterfaceQT4/qtEficas.py @@ -26,15 +26,15 @@ class Appli(Ui_Eficas,QMainWindow): self.VERSION_EFICAS="Eficas QT4 V6.3.1" self.salome=salome self.ihm="QT" - self.top = self #(pour CONFIGURATION) + self.top = self #(pour CONFIGURATION) self.QWParent=None #(Pour lancement sans IHM) self.indice=0 self.dict_reels={} self.multi=multi if self.multi == False :self.definitCode(code,ssCode) + self.RepIcon=os.path.join( os.path.dirname(os.path.abspath(__file__)),'../Editeur/icons') eficas_root_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) - self.RepIcon = os.path.join(eficas_root_dir, "Editeur", "icons") self.ajoutIcones() @@ -57,6 +57,7 @@ class Appli(Ui_Eficas,QMainWindow): from monChoixCode import MonChoixCode widgetChoix = MonChoixCode(self) ret=widgetChoix.exec_() + import sys name='prefs_'+self.code prefsCode=__import__(name)