From b34d7a8b193e6f484d46def5417d9ad0e39cc6a2 Mon Sep 17 00:00:00 2001 From: "pascale.noyret" Date: Wed, 20 Jan 2016 15:46:49 +0100 Subject: [PATCH] traduction des labels des groupes --- InterfaceQT4/monWidgetFact.py | 3 +-- InterfaceQT4/monWidgetFactPlie.py | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/InterfaceQT4/monWidgetFact.py b/InterfaceQT4/monWidgetFact.py index 77756ad4..4e138590 100644 --- a/InterfaceQT4/monWidgetFact.py +++ b/InterfaceQT4/monWidgetFact.py @@ -32,8 +32,7 @@ class MonWidgetFact(Ui_WidgetFact,Groupe): def __init__(self,node,editor,parentQt,definition, obj, niveau,commande): #print "init de Fact" Groupe.__init__(self,node,editor,parentQt, definition,obj,niveau,commande) - labeltext,fonte,couleur = self.node.item.GetLabelText() - self.GroupBox.setText(tr(labeltext)) + self.GroupBox.setText(tr(self.obj.nom)) self.GroupBox.setTextInteractionFlags(Qt.TextSelectableByMouse) self.parentQt.commandesLayout.insertWidget(-1,self) diff --git a/InterfaceQT4/monWidgetFactPlie.py b/InterfaceQT4/monWidgetFactPlie.py index 5804200a..e6061c7d 100644 --- a/InterfaceQT4/monWidgetFactPlie.py +++ b/InterfaceQT4/monWidgetFactPlie.py @@ -32,7 +32,7 @@ class MonWidgetFactPlie(Ui_WidgetFactPlie,Groupe): def __init__(self,node,editor,parentQt,definition, obj, niveau,commande): #print "init de FactPlie" Groupe.__init__(self,node,editor,parentQt, definition,obj,niveau,commande) - self.groupBox.setText(self.obj.nom) + self.groupBox.setText(tr(self.obj.nom)) self.parentQt.commandesLayout.insertWidget(-1,self) def traiteClicSurLabel(self,texte): -- 2.39.2