]> SALOME platform Git repositories - modules/eficas.git/commitdiff
Salome HOME
CCAR: activation/desactivation des parametres
authorChristian Caremoli <>
Mon, 19 Nov 2007 15:51:10 +0000 (15:51 +0000)
committerChristian Caremoli <>
Mon, 19 Nov 2007 15:51:10 +0000 (15:51 +0000)
Extensions/parametre.py

index 540254437bae05344bf05b85b6a2c936622a5d41..58ceefa2f4f128493252edb4e0ea0be1d1aa3f12 100644 (file)
@@ -36,6 +36,7 @@ from Noyau.N_CR import CR
 from Noyau import N_OBJECT
 from Ihm import I_OBJECT
 from param2 import *
+from Ihm import CONNECTOR
 
 class PARAMETRE(N_OBJECT.OBJECT,I_OBJECT.OBJECT,Formula) :
   """
@@ -214,6 +215,8 @@ class PARAMETRE(N_OBJECT.OBJECT,I_OBJECT.OBJECT,Formula) :
         self.jdc.append_param(self)
     except:
         pass
+    CONNECTOR.Emit(self,"add",None)
+    CONNECTOR.Emit(self,"valid")
 
   def inactive(self):
     """
@@ -223,6 +226,8 @@ class PARAMETRE(N_OBJECT.OBJECT,I_OBJECT.OBJECT,Formula) :
     self.actif = 0
     self.jdc.del_param(self)
     self.jdc.delete_concept_after_etape(self,self)
+    CONNECTOR.Emit(self,"supp",None)
+    CONNECTOR.Emit(self,"valid")
 
   def isactif(self):
     """