From 92a4c7bbbe7f48094efbd585d9997fdacb434dc8 Mon Sep 17 00:00:00 2001 From: eap Date: Thu, 28 Dec 2006 08:47:03 +0000 Subject: [PATCH] use '=', '<' and '>' as Compare arg of predicate --- src/SMESH_SWIG/smesh.py | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- 2.39.2