From: skv Date: Fri, 14 Oct 2016 11:24:01 +0000 (+0300) Subject: 0023366: [CEA 1972] Replacing int by bool in a python script X-Git-Tag: V8_2_0a1~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d27962672edba144b56c0f9fc23014a1474ee30f;p=modules%2Fgeom.git 0023366: [CEA 1972] Replacing int by bool in a python script --- diff --git a/doc/salome/examples/viewing_geom_objs_ex01.py b/doc/salome/examples/viewing_geom_objs_ex01.py index b5935764b..8a6d13e93 100644 --- a/doc/salome/examples/viewing_geom_objs_ex01.py +++ b/doc/salome/examples/viewing_geom_objs_ex01.py @@ -15,6 +15,6 @@ fuse_id = geompy.addToStudy(fuse,"Fuse") gg = salome.ImportComponentGUI("GEOM") gg.createAndDisplayGO(fuse_id) gg.setDisplayMode(fuse_id,1) -gg.setVectorsMode(fuse_id, 1) -gg.setVerticesMode(fuse_id, 1) +gg.setVectorsMode(fuse_id, True) +gg.setVerticesMode(fuse_id, True) gg.setNameMode(fuse_id, 1) diff --git a/src/GEOM_SWIG/GEOM_example3.py b/src/GEOM_SWIG/GEOM_example3.py index 147d00010..a44cb7d37 100644 --- a/src/GEOM_SWIG/GEOM_example3.py +++ b/src/GEOM_SWIG/GEOM_example3.py @@ -112,8 +112,8 @@ if not isinstance(gg, type(salome_ComponentGUI)): gg.setDisplayMode(id_torus1,1) gg.setDisplayMode(id_torus2,1) - gg.setVectorsMode(id_acyl,1,1) - gg.setVerticesMode(id_acyl,1,1) + gg.setVectorsMode(id_acyl,True) + gg.setVerticesMode(id_acyl,True) #gg.setDisplayMode(id_cage,1) gg.setColor(id_torus1,0,0,255)