From 66f24b910fd5dc6fa4c4e60a246c622182f58603 Mon Sep 17 00:00:00 2001 From: salome <> Date: Mon, 28 Nov 2005 17:59:06 +0000 Subject: [PATCH] *** empty log message *** --- src/EFICASGUI/EFICASGUI.py | 3 ++- src/EFICASGUI/eficasSalome.py | 36 +++++++++++++++++------------------ 2 files changed, 20 insertions(+), 19 deletions(-) diff --git a/src/EFICASGUI/EFICASGUI.py b/src/EFICASGUI/EFICASGUI.py index f2429e85..df16a59b 100644 --- a/src/EFICASGUI/EFICASGUI.py +++ b/src/EFICASGUI/EFICASGUI.py @@ -193,4 +193,5 @@ dict_command={ #CS_pbruno temporaire import studyManager #from PAL -palStudyManager = studyManager.SalomeStudy() \ No newline at end of file +#palStudyManager = studyManager.SalomeStudy() +palStudyManager = studyManager.study \ No newline at end of file diff --git a/src/EFICASGUI/eficasSalome.py b/src/EFICASGUI/eficasSalome.py index df20f668..9a7e19ff 100644 --- a/src/EFICASGUI/eficasSalome.py +++ b/src/EFICASGUI/eficasSalome.py @@ -25,7 +25,7 @@ sys.path[:0]=[os.path.join( eficasConfig.eficasPath,'Aster'), os.path.join( eficasConfig.eficasPath,'Editeur'), eficasConfig.eficasPath, ] -print 'sys.path', sys.path + import Tkinter @@ -43,7 +43,9 @@ import salome import meshGui import studyManager -from qxembed import QXEmbed +#from qxembed import QXEmbed + +import SalomePyQt @@ -389,29 +391,27 @@ class MyEficas( Tkinter.Toplevel, eficas.EFICAS ): #def runEficas( palStudyManager, code="ASTER", fichier=None, studyId=None): -def runEficas( parent, palStudyManager, code="ASTER", fichier=None ): +def runEficas( parent = SalomePyQt.SalomePyQt().getDesktop(), palStudyManager = studyManager.study, code="ASTER", fichier=None ): global appli if not appli: #une seul instance possible! appli = MyEficas( parent, palStudyManager, code = code, fichier = fichier ) -def runHomard() : - print 'CS_pbruno non implémentée' - """ - parent = - palStudyManager = - runEficas( parent, palStudyManager, code="HOMARD"): - """ +def runHomard( parent = SalomePyQt.SalomePyQt().getDesktop(), palStudyManager = studyManager.study, code="HOMARD", fichier=None ): + global appli + if not appli: #une seul instance possible! + appli = MyEficas( parent, palStudyManager, code = code, fichier = fichier ) -def runAster() : - print 'CS_pbruno non implémentée' - """ - parent = - palStudyManager = - runEficas( parent, palStudyManager, code="ASTER"): - """ - + +""" +def runAster(parent = SalomePyQt.SalomePyQt().getDesktop(), palStudyManager = studyManager.study, code="ASTER", fichier=None ) : + global appli + if not appli: #une seul instance possible! + appli = MyEficas( parent, palStudyManager, code = code, fichier = fichier ) +""" + + # Init globale du module root = Tkinter.Tk() root.withdraw() -- 2.39.2