From f0f37b6263e12c0d10d4ea4cfd9559d18d02ca6d Mon Sep 17 00:00:00 2001 From: vsr Date: Mon, 14 Dec 2009 12:56:29 +0000 Subject: [PATCH] Introduce Parameter wrapper class in Python --- src/GEOM_SWIG/geompyDC.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/GEOM_SWIG/geompyDC.py b/src/GEOM_SWIG/geompyDC.py index fe62ce326..7c6e7707e 100644 --- a/src/GEOM_SWIG/geompyDC.py +++ b/src/GEOM_SWIG/geompyDC.py @@ -107,9 +107,9 @@ def ParseParameters(*parameters): p = notebook.get(parameter) Result.append(p) Params.append(parameter) - elif isinstance(parameter, SALOME._objref_Parameter): - Result.append(notebook.get(parameter)) - Params.append(parameter.GetEntry()) + elif isinstance(parameter, Parameter): + Result.append(parameter.value()) + Params.append(parameter.name()) else: Result.append(parameter) Params.append("") -- 2.39.2