Salome HOME
Removing stand alone mascaret now within telemac
[modules/hydrosolver.git] / src / salome_hydro / coupling1d2d / eficas / appli.py
index 9d379dd4dffff36edd88aebdbf6c4637b4fc036b..e9c576cdfd5037ef3f57be81f910d494ad6fd19a 100644 (file)
@@ -21,8 +21,7 @@ import os
 import sys
 import re
 
-from PyQt5.QtGui import *
-from PyQt5.QtWidgets import *
+from PyQt5.QtWidgets import QMessageBox , QScrollArea, QGridLayout
 
 import salome
 import SalomePyQt
@@ -69,8 +68,13 @@ class EficasForCoupling1D2DAppli(eficasSalome.MyEficas):
         self.ed = HydroStudyEditor()
         self.codedir = os.path.dirname(__file__)
         sys.path[:0] = [self.codedir]
-        eficasSalome.MyEficas.__init__(self, sgPyQt.getDesktop(), "coupling1d2d",
+        area = QScrollArea(SalomePyQt.SalomePyQt().getDesktop());
+        eficasSalome.MyEficas.__init__(self, area, "coupling1d2d",
                                        fichier, version = version)
+        gridLayout = QGridLayout(area)
+        gridLayout.addWidget(self)
+        area.setWidgetResizable(1)
+
         sgPyQt.createView("Eficas Coupling 1D/2D", self)
 
     def selectGroupFromSalome(self, kwType = None, editor=None):