From: Pascale Noyret Date: Fri, 21 May 2010 14:57:40 +0000 (+0000) Subject: pour choix du "sous_code" dans Map X-Git-Tag: V2_0~83 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=dc194c5082105e5840449936f9928f974173e4ab;p=modules%2Feficas.git pour choix du "sous_code" dans Map --- diff --git a/InterfaceQT4/eficas_go.py b/InterfaceQT4/eficas_go.py index 16c11003..2364aa06 100644 --- a/InterfaceQT4/eficas_go.py +++ b/InterfaceQT4/eficas_go.py @@ -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_() diff --git a/InterfaceQT4/qtEficas.py b/InterfaceQT4/qtEficas.py index 71771e03..0399ce18 100644 --- a/InterfaceQT4/qtEficas.py +++ b/InterfaceQT4/qtEficas.py @@ -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)