From: Paul RASCLE Date: Thu, 7 Mar 2019 12:19:24 +0000 (+0100) Subject: EDF 19034: allow fast selection in GEOM and SMESH viewers from PyQt clients. Work... X-Git-Tag: V9_3_0b1~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d5a1357ff0eb545224bb78db1f61b886c8e26c8e;p=modules%2Fkernel.git EDF 19034: allow fast selection in GEOM and SMESH viewers from PyQt clients. Work in progress --- 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