for i in range(0,len( genea )) :
self.clef_fonction=self.clef_fonction+"_"+ genea[i]
#if genea[i] == "GROUP_NO" or genea[i] == "GROUP_MA":
- if "GROUP_NO" in genea[i] or "GROUP_MA" in genea[i]:
- self.select_noeud_maille=1
+ if "GROUP_NO" in genea[len(genea)-1] or "GROUP_MA" in genea[len(genea)-1]:
+ self.select_noeud_maille=1
recherche=panelsSalome.dict_classes_salome[self.panel]
if hasattr(recherche,self.clef_fonction):
self.SALOME_DONNEES_HOMARD_FICHIER_MED_MAILLAGE_N()
def SALOME_DEFI_GROUP_CREA_GROUP_MA_GROUP_MA(self):
- try:
+ #try:
+ if ( 1 == 1 ) :
selection, msg = self.parent.appli.selectGroupFromSalome()
if selection:
strSelection =str( selection )
-
- UNIQUE_BASE_Panel.valid_valeur(self,strSelection)
+ UNIQUE_BASE_Panel.valid_valeur(self,strSelection)
if msg:
self.parent.appli.affiche_infos(msg)
self.erase_valeur()
- except:
+ #except:
+ else :
print ' erreur '
commande="SALOME"
for i in range(0,len( genea )) :
commande=commande+"_"+ genea[i]
- (SALOME_UNIQUE_BASE_Panel.__dict__[commande])(self)
+ # --------------------------------------------------------------
+ # on verifie que la methode n est pas particularise
+ # sinon on appelle SALOME_DEFI_GROUP_CREA_GROUP_MA_GROUP_MA qui
+ # sert comme methode par defaut
+ # --------------------------------------------------------------
+ try :
+ SALOME_UNIQUE_BASE_Panel.__dict__[commande](self)
+ except :
+ SALOME_UNIQUE_BASE_Panel.SALOME_DEFI_GROUP_CREA_GROUP_MA_GROUP_MA(self)
+
def makeValeurPage(self,page):
"""
UNIQUE_BASE_Panel.makeValeurPage(self,page)
self.b = Button(self.frame_valeur,text='Relier selection',command=self.redistribue_selon_simp)
- self.b.place(relx=0.05,rely=0.1)
+ self.b.place(relx=0.28,rely=0.4,relwidth=0.4)
#---------------------------------------------------------------------------------------
# Correspondances entre les classes eficas et les classes salome_eficas