From: smh Date: Thu, 6 May 2004 14:59:53 +0000 (+0000) Subject: "import visu_gui" command added instead of obsolete code X-Git-Tag: Ecole_Ete_a4~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=af89d53c12bf1a4fbbceaa07e4b0f253d1274c7e;p=modules%2Fvisu.git "import visu_gui" command added instead of obsolete code --- diff --git a/src/VISU_SWIG/test_events.py b/src/VISU_SWIG/test_events.py index c553eae5..df53a3e8 100755 --- a/src/VISU_SWIG/test_events.py +++ b/src/VISU_SWIG/test_events.py @@ -5,18 +5,10 @@ # 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();