]> SALOME platform Git repositories - modules/eficas.git/commitdiff
Salome HOME
PN pour les elts de visu
authorsalome <>
Fri, 23 Jun 2006 14:28:39 +0000 (14:28 +0000)
committersalome <>
Fri, 23 Jun 2006 14:28:39 +0000 (14:28 +0000)
src/EFICASGUI/eficasSalome.py

index ae7e714262f3449ef4b8118234ebbeba101d9c74..17fe8552b701c5615f6634980cae3801ae89fed5 100644 (file)
@@ -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
+        """