Salome HOME
bug sur un mesage dans une exception sur un validator (cf JPA)
[tools/eficas.git] / InterfaceQT4 / monWidgetFactPlie.py
index 2cb68e4cc6c2f25bcec6caf733d46a13e395d4c4..51066dca3a76734243d22e2b5ff73a69bb168637 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2007-2013   EDF R&D
+# Copyright (C) 2007-2021   EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
 # Modules Python
 # Modules Eficas
 
+from __future__ import absolute_import
 from desWidgetFactPlie import Ui_WidgetFactPlie
-from groupe import Groupe
-from PyQt4.QtGui import *
-from PyQt4.QtCore import *
+from .groupe import Groupe
 from Extensions.i18n import tr
 # Import des panels
 
 class MonWidgetFactPlie(Ui_WidgetFactPlie,Groupe):
-  """
-  """
-  def __init__(self,node,editor,parentQt,definition, obj, niveau):
-      print "init de FactPlie"
-      Groupe.__init__(self,node,editor,parentQt, definition,obj,niveau)
-      self.groupBox.setText(self.obj.nom)
-      self.parentQt.commandesLayout.insertWidget(-1,self)
+    """
+    """
+    #def __init__(self,node,editor,parentQt,definition, obj, niveau,commande,insertIn=-1):
+    def __init__(self,node,editor,parentQt,definition, obj, niveau,commande):
+        #print "fact plie : ",node.item.nom
+        node.fenetreAAfficher=self
+        Groupe.__init__(self,node,editor,parentQt, definition,obj,niveau,commande)
+        self.groupBox.setText(self.node.item.getLabelText()[0])
+        self.parentQt.commandesLayout.insertWidget(-1,self)
 
+    def traiteClicSurLabel(self,texte):
+        return