Salome HOME
projects
/
modules
/
kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PY3] Fix m4 macro for python 3
[modules/kernel.git]
/
doc
/
salome
/
examples
/
example22
diff --git
a/doc/salome/examples/example22
b/doc/salome/examples/example22
index bba273be632b08bd842ff8a07d067d1fe890e8e9..84befc2d195539e810ce67774feb342c1b454975 100644
(file)
--- a/
doc/salome/examples/example22
+++ b/
doc/salome/examples/example22
@@
-29,10
+29,10
@@
a=[836,3425,342]
A.SetColumn(3,a)
# change attribute values
A.SetColumn(3,a)
# change attribute values
-print
"A.GetValue(2,2) = ", A.GetValue(2,2
)
-print
"A.PutValue(2,2,625323)"
+print
("A.GetValue(2,2) = ", A.GetValue(2,2)
)
+print
("A.PutValue(2,2,625323)")
A.PutValue(625323,2,2)
A.PutValue(625323,2,2)
-print
"A.GetValue(2,2) = ", A.GetValue(2,2
)
+print
("A.GetValue(2,2) = ", A.GetValue(2,2)
)
#set Titles
#set Titles
@@
-48,18
+48,18
@@
A.SetColumnTitle(3,"TC")
#check the table
#check the table
-print
"Common title : ",A.GetTitle(
)
-print
"Rows titles : ", A.GetRowTitles(
)
+print
("Common title : ",A.GetTitle()
)
+print
("Rows titles : ", A.GetRowTitles()
)
rnb = A.GetNbRows() + 1
for i in range(1, rnb):
b=A.GetRow(i)
rnb = A.GetNbRows() + 1
for i in range(1, rnb):
b=A.GetRow(i)
- print
b
+ print
(b)
cnb = A.GetNbColumns() + 1
cnb = A.GetNbColumns() + 1
-print
"Columns title : ", A.GetColumnTitles(
)
+print
("Columns title : ", A.GetColumnTitles()
)
for i in range(1, cnb):
b=A.GetColumn(i)
for i in range(1, cnb):
b=A.GetColumn(i)
- print
b
+ print
(b)
# set titles
#titles=["11","12","13"]
# set titles
#titles=["11","12","13"]
@@
-78,7
+78,7
@@
if str == None:
str = "/tmp"
file = str+"/test.hdf"
str = "/tmp"
file = str+"/test.hdf"
-print
" ------- We will save to", file, "-----------"
+print
(" ------- We will save to", file, "-----------")
batchmode_geompy.myStudyManager.SaveAs(file, batchmode_geompy.myStudy)
batchmode_geompy.myStudyManager.SaveAs(file, batchmode_geompy.myStudy)
@@
-105,24
+105,24
@@
if res == 0 or A == None:
A = A._narrow(SALOMEDS.AttributeTableOfReal)
#check the table
A = A._narrow(SALOMEDS.AttributeTableOfReal)
#check the table
-print
"Common title : ",A.GetTitle(
)
-print
"Rows titles : ", A.GetRowTitles(
)
+print
("Common title : ",A.GetTitle()
)
+print
("Rows titles : ", A.GetRowTitles()
)
rnb = A.GetNbRows() + 1
for i in range(1, rnb):
b=A.GetRow(i)
rnb = A.GetNbRows() + 1
for i in range(1, rnb):
b=A.GetRow(i)
- print
b
+ print
(b)
cnb = A.GetNbColumns() + 1
cnb = A.GetNbColumns() + 1
-print
"Columns title : ", A.GetColumnTitles(
)
+print
("Columns title : ", A.GetColumnTitles()
)
for i in range(1, cnb):
b=A.GetColumn(i)
for i in range(1, cnb):
b=A.GetColumn(i)
- print
b
+ print
(b)
titles=["ff","ss","tt"]
A.SetRowTitles(titles)
titles=["ff","ss","tt"]
A.SetRowTitles(titles)
-print
"Rows titles : ", A.GetRowTitles(
)
+print
("Rows titles : ", A.GetRowTitles()
)
titles=["ww","zz","cc"]
A.SetColumnTitles(titles)
titles=["ww","zz","cc"]
A.SetColumnTitles(titles)
-print
"Column titles : ", A.GetColumnTitles(
)
+print
("Column titles : ", A.GetColumnTitles()
)