5 def __init__(self,ntuple):
8 def __convert__(self,valeur):
10 if type(valeur) == types.StringType:
12 if len(valeur) != self.ntuple:
17 return "Tuple de %s elements" % self.ntuple
24 class forme ( ASSD ) : pass
26 JdC = JDC_CATA (code = 'MED',
30 FORME_GEOMETRIQUE=OPER(nom='FORME_GEOMETRIQUE',sd_prod =forme ,op=None,
31 Forme=SIMP(statut="o",typ='TXM',into=[ 'carre', 'cercle', 'triangle' ],defaut='carre'),
32 bloc_pour_Carre = BLOC (condition = "Forme=='carre'",
33 Cote=SIMP(statut="o",typ='I'), ) , # fin bloc_pour_carre
34 bloc_pour_cercle = BLOC (condition ="Forme=='cercle'",
35 rayon=SIMP(statut="o",typ='I'), ) , # fin bloc_pour_cercle
37 DE_NOMBREUSES_WIDGETS= FACT(statut="o",
38 Stop_Criteria = SIMP(statut = 'o',typ = Tuple(3),validators = VerifTypeTuple(('R','R','R'))),
39 Fichier_Med = SIMP( statut = 'o', typ = ('Fichier', 'Med Files (*.med);;All Files (*)',),),
40 ListeDeChoixPlusGrande=SIMP(statut="o",typ='TXM',into=['a','b,','c','d','e','f','g','h'],
41 homo="SansOrdreNiDoublon",),
42 Un_Parametre_Facultatif=SIMP(statut="f",typ='TXM')
45 Couleur=SIMP(statut = 'f',typ='TXM'),
46 Matiere=SIMP(statut = 'f',typ='TXM'),