From 1129df609aaba907a05d42215cc4bfaa47d69ded Mon Sep 17 00:00:00 2001 From: Pascale Noyret Date: Fri, 14 Dec 2007 09:46:11 +0000 Subject: [PATCH] *** empty log message *** --- src/EFICASGUI/eficasSalome.py | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/src/EFICASGUI/eficasSalome.py b/src/EFICASGUI/eficasSalome.py index 97b14a61..a56c7070 100644 --- a/src/EFICASGUI/eficasSalome.py +++ b/src/EFICASGUI/eficasSalome.py @@ -191,7 +191,6 @@ class MyEficas( Tkinter.Toplevel, eficas.EFICAS ): Tkinter.Toplevel.__init__( self ) if Editeur.__dict__.has_key( 'session' ): - print 'CS_pbruno has_key session' from Editeur import session eficasArg = [] eficasArg += sys.argv @@ -205,8 +204,18 @@ class MyEficas( Tkinter.Toplevel, eficas.EFICAS ): splash._splash.configure( text="Chargement d'EFICAS en cours.\n Veuillez patienter ..." ) # différence eficas 1.7 et 1.8 + # compatibilite 1.12 + V112=0 + try : + from Editeur import appli + V112=1 + except : + pass - eficas.EFICAS.__init__( self, self, code = code , salome = 1) + if V112 : + eficas.EFICAS.__init__( self, self, code = code ) + else : + eficas.EFICAS.__init__( self, self, code = code , salome = 1) #--------------------------------------------------------------------------------------------- @@ -264,10 +273,6 @@ class MyEficas( Tkinter.Toplevel, eficas.EFICAS ): gros plantage sinon ) """ activeStudyId = salome.sg.getActiveStudyId() - #print 50*'=' - #print 'activeStudyId->',activeStudyId - #print 'salome.myStudyId->',salome.myStudyId - #print 50*'=' if activeStudyId == 0: # pas d'étude active return False -- 2.39.2