# This script can be run from GUI Python console only!
###############################################################
-import salome
-
-# it's necessary to load VISU engine, this will cause VisuGUI to be loaded
-salome.lcc.FindOrLoadComponent("FactoryServer","VISU")
-
-# this can be done only after VISU engine has been loaded
-from libVISU_Swig import *
-
-visu=VISU_Swig()
+from visu_gui import *
for i in range ( 10 ):
- visu.CreateTestView()
+ myVisu.CreateTestView()
for j in range ( 10 ):
- visu.ShowTestObject();
+ myVisu.ShowTestObject();