From fa83f1fd21b5b1ddbdf7a94de6fa41856b17c8b2 Mon Sep 17 00:00:00 2001 From: salome <> Date: Fri, 23 Jun 2006 14:28:39 +0000 Subject: [PATCH] PN pour les elts de visu --- src/EFICASGUI/eficasSalome.py | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/src/EFICASGUI/eficasSalome.py b/src/EFICASGUI/eficasSalome.py index ae7e7142..17fe8552 100644 --- a/src/EFICASGUI/eficasSalome.py +++ b/src/EFICASGUI/eficasSalome.py @@ -44,6 +44,7 @@ from Editeur import splash import salome import meshGui +import visuDriver import studyManager #from qxembed import QXEmbed @@ -267,7 +268,7 @@ class MyEficas( Tkinter.Toplevel, eficas.EFICAS ): groupMa = () try: itemName = item.get_nom() - #print 'CS_pbruno itemName',itemName + print 'CS_pbruno itemName',itemName if itemName == 'GROUP_MA': itemValue = item.get_valeur() print 'CS_pbruno trouvé! GROUP_MA->', itemValue @@ -276,10 +277,11 @@ class MyEficas( Tkinter.Toplevel, eficas.EFICAS ): elif type( itemValue ) == tuple: groupMa += itemValue else: - children = item.GetSubList() + children = item.__GetSubList() for child in children: groupMa += self.__getAllGroupeMa( child ) except: # à cause de GetSubList()... + print "dans except" pass print 'CS_pbruno groupMa',groupMa return groupMa @@ -301,7 +303,7 @@ class MyEficas( Tkinter.Toplevel, eficas.EFICAS ): elif type( itemValue ) == tuple: groupNo += itemValue else: - children = item.GetSubList() + children = item.__GetSubList() for child in children: groupNo += self.__getAllGroupeNo( child ) except: # à cause de GetSubList()... @@ -459,6 +461,22 @@ class MyEficas( Tkinter.Toplevel, eficas.EFICAS ): +#------------------------------------------------------------------------------------------------------- +# Pilotage de la Visu des elements de structures +# + + def envoievisu(self,liste_commandes): + #try: + if ( 1 == 1 ): + atLeastOneStudy = self.__studySync() + if not atLeastOneStudy: + return + monDriver=visuDriver.visuDriver(studyManager.palStudy,liste_commandes) + monDriver.analyse() + else: + #except: + print "boum dans envoievisu" + #------------------------------------------------------------------------------------------------------- # Point d'entré lancement EFICAS @@ -536,4 +554,4 @@ logger=ExtLogger( "eficasSalome.py" ) print 'bizarre' embedded.grabKeyboard() - """ \ No newline at end of file + """ -- 2.39.2