]> SALOME platform Git repositories - modules/eficas.git/commitdiff
Salome HOME
pour choix du "sous_code" dans Map
authorPascale Noyret <pascale.noyret@edf.fr>
Fri, 21 May 2010 14:57:40 +0000 (14:57 +0000)
committerPascale Noyret <pascale.noyret@edf.fr>
Fri, 21 May 2010 14:57:40 +0000 (14:57 +0000)
InterfaceQT4/eficas_go.py
InterfaceQT4/qtEficas.py

index 16c110032b9feb2f5dd42eb036c92cd4deb73978..2364aa0669610fdc2dff20a282b86b15fdf20082 100644 (file)
@@ -30,7 +30,7 @@ from Editeur  import import_code
 from Editeur  import session
 from qtEficas import Appli
 
-def lance_eficas(code=None,fichier=None):
+def lance_eficas(code=None,fichier=None,ssCode=None):
     """
         Lance l'appli EFICAS
     """
@@ -39,7 +39,7 @@ def lance_eficas(code=None,fichier=None):
     code=options.code
 
     app = QApplication(sys.argv)
-    Eficas=Appli(code=code)
+    Eficas=Appli(code=code,ssCode=ssCode)
     Eficas.show()
 
     res=app.exec_()
index 71771e03e24897b1cc5ccc50f0ccb77c13a28009..0399ce189a51fcaa7957a5ae18b3dfe8018fc5b6 100644 (file)
@@ -15,13 +15,14 @@ class Appli(Ui_Eficas,QMainWindow):
     """
     Class implementing the main user interface.
     """
-    def __init__(self,code="ASTER",salome=0,parent=None):
+    def __init__(self,code="ASTER",salome=0,parent=None,ssCode=None):
         """
         Constructor
         """
         self.VERSION_EFICAS="Eficas QT4 V2.0"
         self.ihm="QT"
         self.code=code
+        self.ssCode=ssCode
         self.salome=salome
         self.format_fichier="python"   #par defaut
        self.top = self #(pour CONFIGURATION)