From 297f36507b33aa2fdc3a80db395c139e65ef9269 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