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