X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=InterfaceQT4%2FmonWidgetBloc.py;h=648505cf3c76f1c3ab4584200028f3ea230d06d8;hb=96176d0080e0d4efbd29d98c0df700a64a82acdc;hp=0ac25d25e07050cf8b2376d51b3c5368850c90cf;hpb=df0e1a1f57e70d3d99dd7fb381845500c3d3c6dd;p=tools%2Feficas.git diff --git a/InterfaceQT4/monWidgetBloc.py b/InterfaceQT4/monWidgetBloc.py index 0ac25d25..648505cf 100644 --- a/InterfaceQT4/monWidgetBloc.py +++ b/InterfaceQT4/monWidgetBloc.py @@ -19,10 +19,9 @@ # 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)