From: eap Date: Thu, 28 Dec 2006 08:47:03 +0000 (+0000) Subject: use '=', '<' and '>' as Compare arg of predicate X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=92a4c7bbbe7f48094efbd585d9997fdacb434dc8;p=modules%2Fsmesh.git use '=', '<' and '>' as Compare arg of predicate --- diff --git a/src/SMESH_SWIG/smesh.py b/src/SMESH_SWIG/smesh.py index 1d73edf00..a8a21aaf6 100644 --- a/src/SMESH_SWIG/smesh.py +++ b/src/SMESH_SWIG/smesh.py @@ -241,6 +241,12 @@ def GetCriterion(elementType, if Compare in [FT_LessThan, FT_MoreThan, FT_EqualTo]: aCriterion.Compare = EnumToLong(Compare) + elif Compare == "=" or Compare == "==": + aCriterion.Compare = EnumToLong(FT_EqualTo) + elif Compare == "<": + aCriterion.Compare = EnumToLong(FT_LessThan) + elif Compare == ">": + aCriterion.Compare = EnumToLong(FT_MoreThan) else: aCriterion.Compare = EnumToLong(FT_EqualTo) aTreshold = Compare