From: pascale.noyret Date: Mon, 23 Oct 2017 09:35:32 +0000 (+0200) Subject: les accents X-Git-Tag: V8_4_0 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7e5709e21cc06c5bb1abbb968cd1e7ece691fa9d;p=tools%2Feficas.git les accents --- 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 :