From 1c8f02f697edeee0757d0f66382285959a26c346 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9?= Date: Mon, 3 May 2010 17:10:26 +0200 Subject: [PATCH] Scroll Area --- src/daSalome/daGUI/daGuiImpl/datassimGuiManager.py | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/daSalome/daGUI/daGuiImpl/datassimGuiManager.py b/src/daSalome/daGUI/daGuiImpl/datassimGuiManager.py index a973b19..c79a582 100644 --- a/src/daSalome/daGUI/daGuiImpl/datassimGuiManager.py +++ b/src/daSalome/daGUI/daGuiImpl/datassimGuiManager.py @@ -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() -- 2.39.2