From dc194c5082105e5840449936f9928f974173e4ab Mon Sep 17 00:00:00 2001 From: Pascale Noyret Date: Fri, 21 May 2010 14:57:40 +0000 Subject: [PATCH] pour choix du "sous_code" dans Map --- InterfaceQT4/eficas_go.py | 4 ++-- InterfaceQT4/qtEficas.py | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) 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) -- 2.39.2