]> SALOME platform Git repositories - modules/visu.git/blobdiff - src/VISU_SWIG/visu_view.py
Salome HOME
Merge from V5_1_main 14/05/2010
[modules/visu.git] / src / VISU_SWIG / visu_view.py
index 92ade37d360a608df3d72c445cd0da3887d8a335..2e4b1c2ff1a98af9e4f8c691f2206d5c26860f4b 100644 (file)
@@ -1,12 +1,31 @@
-#==============================================================================
-#  File      : test_table.py
-#  Created   : 20/01/03
-#  Author    : Alexey Petrov
-#  Project   : SALOME
-#  Copyright : Open CASCADE
-#  $Header: 
-#==============================================================================
+#  -*- coding: iso-8859-1 -*-
+#  Copyright (C) 2007-2010  CEA/DEN, EDF R&D, OPEN CASCADE
+#
+#  Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+#  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+#
+#  This library is free software; you can redistribute it and/or
+#  modify it under the terms of the GNU Lesser General Public
+#  License as published by the Free Software Foundation; either
+#  version 2.1 of the License.
+#
+#  This library is distributed in the hope that it will be useful,
+#  but WITHOUT ANY WARRANTY; without even the implied warranty of
+#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+#  Lesser General Public License for more details.
+#
+#  You should have received a copy of the GNU Lesser General Public
+#  License along with this library; if not, write to the Free Software
+#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+#  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
 
+#  VISU VISU_SWIG : binding of C++ implementation and Python
+#  File   : visu_view.py
+#  Author : Alexey Petrov
+#  Module : VISU
+#
 import SALOMEDS
 import VISU
 
@@ -16,13 +35,15 @@ from VISU import *
 
 from visu_table import *
 
+myVisu.SetCurrentStudy(salome.myStudy)
+
 myViewMan = myVisu.GetViewManager()
 
 myTable = myViewMan.CreateTableView(myVisuTableReal)
 myTitle = myTable.GetTitle()
 myTable.SetTitle('Changed Title')
 
-myPlot = myViewMan.CreateXYPlot(myContainer1)
+myPlot = myViewMan.CreateXYPlot()
 myTitle = myPlot.GetTitle()
 myPlot.SetTitle('Change the title from python')