]> SALOME platform Git repositories - modules/adao.git/commitdiff
Salome HOME
Utilisation de la nouvelle méthode du GUI
authorAndré Ribes <andre.ribes@edf.fr>
Fri, 17 Dec 2010 13:55:55 +0000 (14:55 +0100)
committerAndré Ribes <andre.ribes@edf.fr>
Fri, 17 Dec 2010 13:55:55 +0000 (14:55 +0100)
IL s'agit d'une command de la PHASE_25_BR, fiche 20936

src/daSalome/daGUI/daGuiImpl/adaoGuiManager.py

index 359565baa51287a5ccd993e80dcd8a730b1e6b98..272a81e01151357f904904b7420752ce59cca423 100644 (file)
@@ -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()