From d5a1357ff0eb545224bb78db1f61b886c8e26c8e Mon Sep 17 00:00:00 2001 From: Paul RASCLE Date: Thu, 7 Mar 2019 13:19:24 +0100 Subject: [PATCH] EDF 19034: allow fast selection in GEOM and SMESH viewers from PyQt clients. Work in progress --- src/KERNEL_PY/salome_iapp.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/KERNEL_PY/salome_iapp.py b/src/KERNEL_PY/salome_iapp.py index 5b169f8bf..163dc2d16 100644 --- a/src/KERNEL_PY/salome_iapp.py +++ b/src/KERNEL_PY/salome_iapp.py @@ -34,12 +34,14 @@ import salome_ComponentGUI IN_SALOME_GUI=None -def ImportComponentGUI(ComponentName): +def ImportComponentGUI(ComponentName, updateOB=True): if IN_SALOME_GUI: libName = "lib" + ComponentName + "_Swig" command = "from " + libName + " import *" exec (command, globals()) constructor = ComponentName + "_Swig()" + if not updateOB : + constructor = ComponentName + "_Swig( False )" command = "gui = " + constructor exec (command, globals()) return gui # @UndefinedVariable -- 2.39.2