From af89d53c12bf1a4fbbceaa07e4b0f253d1274c7e Mon Sep 17 00:00:00 2001 From: smh Date: Thu, 6 May 2004 14:59:53 +0000 Subject: [PATCH] "import visu_gui" command added instead of obsolete code --- src/VISU_SWIG/test_events.py | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) 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(); -- 2.39.2