Salome HOME
Merge Python 3 porting.
[modules/kernel.git] / doc / salome / examples / example13
index c05aaff5258a3e259f3199284bcef1f608179892..6c16c96f01f4167f7115226a492a3d6ae15391eb 100644 (file)
@@ -19,7 +19,7 @@ A.SetTextHighlightColor(highlightcolor)
 
 c = A.TextHighlightColor();
 if c.R != 256 or c.G != 256 or c.B != 256:
-        print "Error: wrong value of AttributeTextHighlightColor"
+        print("Error: wrong value of AttributeTextHighlightColor")
 
 
 #      save / restore study      
@@ -29,8 +29,8 @@ if str == None:
         str = "/tmp"
 file = str+"/test.hdf"
 
-batchmode_geompy.myStudyManager.SaveAs(file, batchmode_geompy.myStudy)
-openedStudy=batchmode_geompy.myStudyManager.Open(file);
+batchmode_geompy.myStudy.SaveAs(file)
+openedStudy=batchmode_geompy.myStudy.Open(file);
 
 if openedStudy == None:
         raise  RuntimeError, "Can't open saved study!"
@@ -44,7 +44,7 @@ if father is None:
 #============================================================
 
 res, A = father.FindAttribute("AttributeTextHighlightColor")
-print res, A
+print(res, A)
 if res == 0 or A == None:
         raise  RuntimeError, "Error:  not found AttributeTextHighlightColor"
 
@@ -56,5 +56,5 @@ if A == None :
 c = A.TextHighlightColor();
 
 if c.R != 256 or c.G != 256 or c.B != 256:
-        print "Error: wrong value of AttributeTextTextHighlightColor"
+        print("Error: wrong value of AttributeTextTextHighlightColor")