From f6f134c3edc7826fa72c552801e7b60245ae6f12 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20Ribes?= Date: Fri, 17 Dec 2010 14:55:55 +0100 Subject: [PATCH] =?utf8?q?Utilisation=20de=20la=20nouvelle=20m=C3=A9thode?= =?utf8?q?=20du=20GUI?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit IL s'agit d'une command de la PHASE_25_BR, fiche 20936 --- src/daSalome/daGUI/daGuiImpl/adaoGuiManager.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/daSalome/daGUI/daGuiImpl/adaoGuiManager.py b/src/daSalome/daGUI/daGuiImpl/adaoGuiManager.py index 359565b..272a81e 100644 --- a/src/daSalome/daGUI/daGuiImpl/adaoGuiManager.py +++ b/src/daSalome/daGUI/daGuiImpl/adaoGuiManager.py @@ -138,11 +138,15 @@ class AdaoGuiActionImpl(EficasObserver): if self.__Eficas_viewId == -1: self.__dlgEficasWrapper.init_gui() + # Scroll Widget area = QtGui.QScrollArea(SalomePyQt.SalomePyQt().getDesktop()); area.setWidget( self.__dlgEficasWrapper) area.setWidgetResizable(1) - self.__Eficas_viewId = SalomePyQt.SalomePyQt().createViewWithWidget(area) + + wmType = "ADAO View" + self.__Eficas_viewId = sgPyQt.createView(wmType, area) + sgPyQt.setViewClosable(self.__Eficas_viewId, False) else: if SalomePyQt.SalomePyQt().getActiveView() != self.__Eficas_viewId : result_activate = SalomePyQt.SalomePyQt().activateView(self.__Eficas_viewId) @@ -153,7 +157,10 @@ class AdaoGuiActionImpl(EficasObserver): area = QtGui.QScrollArea(SalomePyQt.SalomePyQt().getDesktop()); area.setWidget( self.__dlgEficasWrapper) area.setWidgetResizable(1) - self.__Eficas_viewId = SalomePyQt.SalomePyQt().createViewWithWidget(area) + + wmType = "ADAO View" + self.__Eficas_viewId = sgPyQt.createView(wmType, area) + sgPyQt.setViewClosable(self.__Eficas_viewId, False) def activate(self): self.showEficas() -- 2.39.2