From: André Date: Mon, 3 May 2010 15:10:26 +0000 (+0200) Subject: Scroll Area X-Git-Tag: V6_4_0rc3~150 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1c8f02f697edeee0757d0f66382285959a26c346;p=modules%2Fadao.git Scroll Area --- 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()