Salome HOME
les accents
[tools/eficas.git] / InterfaceQT4 / monWidgetBloc.py
index 0ac25d25e07050cf8b2376d51b3c5368850c90cf..7d5d8239ea31a007dedad648d50c5ce9833199c1 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2007-2013   EDF R&D
+# Copyright (C) 2007-2017   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 desWidgetBloc import Ui_WidgetBloc
-from groupe import Groupe
-from PyQt4.QtGui import *
-from PyQt4.QtCore import *
+from .groupe import Groupe
 from Extensions.i18n import tr
 # Import des panels
 
@@ -30,7 +29,8 @@ class MonWidgetBloc(Ui_WidgetBloc,Groupe):
   """
   """
   def __init__(self,node,editor,parentQt,definition, obj, niveau,commande):
+      #print "bloc : ",node.item.nom
       Groupe.__init__(self,node,editor,parentQt, definition,obj,niveau,commande)
-      self.parentQt.commandesLayout.insertWidget(-1,self)
+      self.parentQt.commandesLayout.insertWidget(-1,self,1)