]> SALOME platform Git repositories - modules/adao.git/commitdiff
Salome HOME
Scroll Area
authorAndré <andre.ribes@edf.fr>
Mon, 3 May 2010 15:10:26 +0000 (17:10 +0200)
committerAndré <andre.ribes@edf.fr>
Mon, 3 May 2010 15:10:26 +0000 (17:10 +0200)
src/daSalome/daGUI/daGuiImpl/datassimGuiManager.py

index a973b190d541f242b4630c262e9ba6d690cb5051..c79a582f01b0b993d63a2d5d3e419bc7cd31e03f 100644 (file)
@@ -138,7 +138,12 @@ class DatassimGuiActionImpl(EficasObserver):
       if self.__Eficas_viewId == -1:
         print "First showEficas"
         self.__dlgEficasWrapper.init_gui()
-        self.__Eficas_viewId = SalomePyQt.SalomePyQt().createViewWithMain(self.__dlgEficasWrapper)
+
+        # Scroll Widget
+        area = QtGui.QScrollArea(SalomePyQt.SalomePyQt().getDesktop());
+        area.setWidget( self.__dlgEficasWrapper)
+        area.setWidgetResizable(1)
+        self.__Eficas_viewId = SalomePyQt.SalomePyQt().createViewWithWidget(area)
       else:
         print "myViewId =",  self.__Eficas_viewId
         print "activeView =", SalomePyQt.SalomePyQt().getActiveView()
@@ -147,7 +152,12 @@ class DatassimGuiActionImpl(EficasObserver):
           if result_activate == False:
             print "View was close - create a new eficas widget"
             self.__dlgEficasWrapper.init_gui()
-            self.__Eficas_viewId = SalomePyQt.SalomePyQt().createViewWithMain(self.__dlgEficasWrapper)
+
+            # Scroll Widget
+            area = QtGui.QScrollArea(SalomePyQt.SalomePyQt().getDesktop());
+            area.setWidget( self.__dlgEficasWrapper)
+            area.setWidgetResizable(1)
+            self.__Eficas_viewId = SalomePyQt.SalomePyQt().createViewWithWidget(area)
 
     def activate(self):
       self.showEficas()