From d27962672edba144b56c0f9fc23014a1474ee30f Mon Sep 17 00:00:00 2001 From: skv Date: Fri, 14 Oct 2016 14:24:01 +0300 Subject: [PATCH] 0023366: [CEA 1972] Replacing int by bool in a python script --- doc/salome/examples/viewing_geom_objs_ex01.py | 4 ++-- src/GEOM_SWIG/GEOM_example3.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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) -- 2.39.2