From c15443d8625415791c6aba622b192c9fdf36cec2 Mon Sep 17 00:00:00 2001 From: "pascale.noyret" Date: Thu, 30 Aug 2018 18:19:57 +0200 Subject: [PATCH] modifs MT --- Ihm/I_MACRO_ETAPE.py | 1 + InterfaceQT4/monLayoutBouton.py | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Ihm/I_MACRO_ETAPE.py b/Ihm/I_MACRO_ETAPE.py index 40941944..0de991d8 100644 --- a/Ihm/I_MACRO_ETAPE.py +++ b/Ihm/I_MACRO_ETAPE.py @@ -545,6 +545,7 @@ class MACRO_ETAPE(I_ETAPE.ETAPE): for e in self.etapes: e.niveau=self.niveau e.parent=self.parent + e.state='change' index=self.jdc.etapes.index(self) self.jdc.etapes=self.jdc.etapes[:index+1]+self.etapes+self.jdc.etapes[index+1:] diff --git a/InterfaceQT4/monLayoutBouton.py b/InterfaceQT4/monLayoutBouton.py index a1c11b7b..49a431a4 100644 --- a/InterfaceQT4/monLayoutBouton.py +++ b/InterfaceQT4/monLayoutBouton.py @@ -39,7 +39,9 @@ class MonLayoutBouton : self.appliEficas = appliEficas self.buttonGroup = QButtonGroup() - for nomEtape in self.appliEficas.readercata.cata_ordonne_dico: + + for etape in self.appliEficas.readercata.cata.JdC.commandes : + nomEtape = etape.nom toolButton = QToolButton(self.appliEficas.toolBarCommande) icon = QIcon() if nomEtape in self.appliEficas.maConfiguration.dicoIcones: -- 2.39.2