]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
EDF 19034: allow fast selection in GEOM and SMESH viewers from PyQt clients. Work...
authorPaul RASCLE <paul.rascle@edf.fr>
Thu, 7 Mar 2019 12:19:24 +0000 (13:19 +0100)
committerPaul RASCLE <paul.rascle@edf.fr>
Thu, 7 Mar 2019 12:19:24 +0000 (13:19 +0100)
src/KERNEL_PY/salome_iapp.py

index 5b169f8bf5709d7ebf732f3bbcaeb1f3f1744f3d..163dc2d16cacbe5e02532d4e0fef09c3fb44abf0 100644 (file)
@@ -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