From: pascale.noyret Date: Wed, 20 Jan 2016 14:46:49 +0000 (+0100) Subject: traduction des labels des groupes X-Git-Tag: V7_8_0_EfiN^0 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b34d7a8b193e6f484d46def5417d9ad0e39cc6a2;p=modules%2Feficas.git traduction des labels des groupes --- 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):