From: André Ribes Date: Fri, 17 Dec 2010 13:55:55 +0000 (+0100) Subject: Utilisation de la nouvelle méthode du GUI X-Git-Tag: V6_4_0rc3~109 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f6f134c3edc7826fa72c552801e7b60245ae6f12;p=modules%2Fadao.git Utilisation de la nouvelle méthode du GUI IL s'agit d'une command de la PHASE_25_BR, fiche 20936 --- 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()