Salome HOME
layout pour pytel
[modules/hydrosolver.git] / src / salome_hydro / pytel / eficas / appli.py
old mode 100644 (file)
new mode 100755 (executable)
index 1f86a10..b1189a5
@@ -18,7 +18,7 @@
 import os
 import sys
 
-from PyQt5.QtWidgets import QMessageBox 
+from PyQt5.QtWidgets import QMessageBox , QScrollArea, QGridLayout
 
 
 import salome
@@ -49,6 +49,12 @@ class EficasForPytelAppli(eficasSalome.MyEficas):
         sys.path[:0] = [self.codedir]
         eficasSalome.MyEficas.__init__(self, sgPyQt.getDesktop(), "pytel",
                                        fichier, version = version)
+        area = QScrollArea(SalomePyQt.SalomePyQt().getDesktop());
+        gridLayout = QGridLayout(area)
+        gridLayout.addWidget(self)
+        area.setWidgetResizable(1)
+        self.fileNew()
+
         sgPyQt.createView("Eficas Pytel", self)
 
     def addJdcInSalome(self, jdcPath):