From 1c83d259c78c1ccd055efc850d63ada7a3ef3849 Mon Sep 17 00:00:00 2001 From: "pascale.noyret" Date: Mon, 23 Oct 2017 11:35:32 +0200 Subject: [PATCH] les accents --- InterfaceQT4/monChoixCommande.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/InterfaceQT4/monChoixCommande.py b/InterfaceQT4/monChoixCommande.py index 6d028d6b..67b0e419 100644 --- a/InterfaceQT4/monChoixCommande.py +++ b/InterfaceQT4/monChoixCommande.py @@ -320,7 +320,15 @@ class MonChoixCommande(Ui_ChoixCommandes,QWidget): self.insereNoeudApresClick(None) def rbClique(self,id): - self.name=self.dicoCmd[str(id.text())] + + try : + self.name=self.dicoCmd[id.text()] + except : + try : + self.name=self.dicoCmd[str(id.text())] + except : + print ('pb d accent : contacter la maintenance') + definitionEtape=getattr(self.jdc.cata[0],self.name) #commentaire=getattr(definitionEtape,self.jdc.lang) try : -- 2.39.2