]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
0023360: [CEA 1963] Use salome.sg.updateObjBrowser(True) instead of salome.sg.updateO...
authorvsr <vsr@opencascade.com>
Thu, 6 Oct 2016 07:55:17 +0000 (10:55 +0300)
committervsr <vsr@opencascade.com>
Thu, 6 Oct 2016 07:55:17 +0000 (10:55 +0300)
27 files changed:
doc/salome/examples/GEOM_box.py
doc/salome/examples/arranging_study_objects.py
doc/salome/examples/blocks_operations_ex03.py
doc/salome/examples/repairing_operations_ex08.py
doc/salome/examples/repairing_operations_ex10.py
doc/salome/examples/repairing_operations_ex11.py
doc/salome/examples/repairing_operations_ex12.py
doc/salome/examples/working_with_groups_ex01.py
doc/salome/examples/working_with_groups_ex02.py
doc/salome/examples/working_with_groups_ex03.py
doc/salome/examples/working_with_groups_ex04.py
doc/salome/examples/working_with_groups_ex05.py
doc/salome/examples/working_with_groups_ex06.py
src/GEOM_PY/geomtools.py
src/GEOM_SWIG/GEOM_Nut.py
src/GEOM_SWIG/GEOM_ObjectInfo.py
src/GEOM_SWIG/GEOM_blocks.py
src/GEOM_SWIG/GEOM_cyl2complementary.py
src/GEOM_SWIG/GEOM_shellSolid.py
src/GEOM_SWIG/GEOM_tube_geom.py
src/GEOM_SWIG/PAL_MESH_019_020_geometry.py
src/GEOM_SWIG/PAL_MESH_028_geometry.py
src/GEOM_SWIG/PAL_MESH_030_geometry.py
src/GEOM_SWIG/PAL_MESH_033_geometry.py
src/GEOM_SWIG/PAL_MESH_035_geometry.py
src/GEOM_SWIG/geomBuilder.py
src/GEOM_SWIG/gsketcher.py

index 1d9864b2f64f31001d9b9fbca900c030bc1b381f..7469790b3a7498b37934b73e18e3d581d1340e74 100644 (file)
@@ -13,4 +13,4 @@ geompy.addToStudy( Box_1, 'Box_1' )
 
 # --- update the study object browser
 if salome.sg.hasDesktop():
-  salome.sg.updateObjBrowser(1)
+  salome.sg.updateObjBrowser(True)
index bedbe6161026b06cf33e1e47358a7402f7a58ba4..149cff480e57dfa7a094ec64b3d73afc38b17ba7 100644 (file)
@@ -22,4 +22,4 @@ geompy.PutListToFolder([Box_1, Cylinder_1], Primitives)
 
 
 if salome.sg.hasDesktop():
-  salome.sg.updateObjBrowser(1)
+  salome.sg.updateObjBrowser(True)
index c38bf6c83b6a913d601de7622367c2533f7a15ee..384c4e1aeb26fe2b5b5d3304af3d6bcb1e65c930 100644 (file)
@@ -20,4 +20,4 @@ for chain in listChains:
     ii = ii + 1
     pass
 
-salome.sg.updateObjBrowser(1
+salome.sg.updateObjBrowser(True
index 933298eefc439ae0c8653bdc26e93ff143c9968d..5266bc3a672be55668be6a8410257d95b05bc422 100644 (file)
@@ -30,4 +30,4 @@ geompy.addToStudy(glue1, "Glue all edges")
 geompy.addToStudy(glue2, "Glue two edges")
 
 if salome.sg.hasDesktop():
-  salome.sg.updateObjBrowser(1)
+  salome.sg.updateObjBrowser(True)
index 6b8e4280eedc67846992c7fa9f69e756d9819feb..bf823db92066611446114f27f3de6a60c1f2f197 100644 (file)
@@ -40,4 +40,4 @@ edge = geompy.GetEdgeNearPoint( box, p1, theName="edge to split")
 div  = geompy.DivideEdgeByPoint( box, edge, [p1, p2], theName="box (edge divided)")
 
 
-salome.sg.updateObjBrowser(1
+salome.sg.updateObjBrowser(True
index 1b50e6ffd8f7566279a198968082864eabf948ac..c243e5118dea4b1e169078fc59cce9217bec94e8 100644 (file)
@@ -49,4 +49,4 @@ for wire in wires:
     ii = ii + 1
     pass
 
-salome.sg.updateObjBrowser(1
+salome.sg.updateObjBrowser(True
index 80a814a303913a9a47ff8997878eb5b407ab88f4..4075e1bc17575c05798dca7e7a0408383e42ae60 100644 (file)
@@ -23,4 +23,4 @@ geompy.addToStudy(Partition_1, 'Partition_1')
 Joined_1 = geompy.RemoveInternalFaces(Partition_1)
 geompy.addToStudy(Joined_1, 'Joined_1')
 
-salome.sg.updateObjBrowser(1
+salome.sg.updateObjBrowser(True
index 26678d58f394b30a91524aa37f56f0b01d7dfa16..4133965f455bb39e1183b8eb3f925b3dfb7c0954 100644 (file)
@@ -37,4 +37,4 @@ id_group1 = geompy.addToStudy(group, "Group1")
 
 # display the contents of the group
 gg.createAndDisplayGO(id_group1)
-salome.sg.updateObjBrowser(1)
+salome.sg.updateObjBrowser(True)
index 6531cbfc992850e2f1f2d8fca8d53bf53a8240ef..773043b88c7f8e1f43a881757d630c07bd4f52f5 100644 (file)
@@ -26,4 +26,4 @@ id_group1 = geompy.addToStudy(group, "Group1")
 
 # display the contents of the group
 gg.createAndDisplayGO(id_group1)
-salome.sg.updateObjBrowser(1
+salome.sg.updateObjBrowser(True
index 0170d54ed7e678f93158835baeeea4f517ff1f00..a9637afc7f883224b0069240837216de64681bcd 100644 (file)
@@ -33,4 +33,4 @@ id_group1 = geompy.addToStudy(group, "Group1")
 
 # display the contents of the group
 gg.createAndDisplayGO(id_group1)
-salome.sg.updateObjBrowser(1
+salome.sg.updateObjBrowser(True
index af9fc6f12280074dd02d71b6cea99901df116177..f48fef7259b6fd92bff72496b4bd940076eec3ed 100644 (file)
@@ -29,4 +29,4 @@ geompy.addToStudyInFather(Box_1, Group_3, 'Group_3')
 geompy.addToStudyInFather(Box_1, Group_4, 'Group_4')
 geompy.addToStudyInFather(Box_1, Group_U_1_2, 'Group_U_1_2')
 geompy.addToStudyInFather(Box_1, Group_UL_3_4, 'Group_UL_3_4')
-salome.sg.updateObjBrowser(1
+salome.sg.updateObjBrowser(True
index 50af27d5ea2660474dbb91d77cf55bed91dbbb79..551f8475528fb6e3350f0c3e872ed80341677a6a 100644 (file)
@@ -29,4 +29,4 @@ geompy.addToStudyInFather(Box_1, Group_3, 'Group_3')
 geompy.addToStudyInFather(Box_1, Group_4, 'Group_4')
 geompy.addToStudyInFather(Box_1, Group_I_1_3, 'Group_I_1_3')
 geompy.addToStudyInFather(Box_1, Group_IL_1_3, 'Group_IL_1_3')
-salome.sg.updateObjBrowser(1
+salome.sg.updateObjBrowser(True
index 27fb6d509d86789f365e3bfd2a163b5a9dc71ccd..155c4a115633c6827e8af68aa7f1d4e8ba39e615 100644 (file)
@@ -29,4 +29,4 @@ geompy.addToStudyInFather(Box_1, Group_3, 'Group_3')
 geompy.addToStudyInFather(Box_1, Group_4, 'Group_4')
 geompy.addToStudyInFather(Box_1, Group_C_2_4, 'Group_C_2_4')
 geompy.addToStudyInFather(Box_1, Group_CL_2_4, 'Group_CL_2_4')
-salome.sg.updateObjBrowser(1
+salome.sg.updateObjBrowser(True
index 09fba1f7b44c5c86a34326049ecb986cbdf34aff..a6e18abac4e380c4ac18f92a7b2f5e91fcf2e7ee 100644 (file)
@@ -337,7 +337,7 @@ def TEST_createBox():
     box = geompy.MakeBoxDXDYDZ(200, 200, 200)
     geompy.addToStudy( box, 'box' )    
     if salome.sg.hasDesktop():
-        salome.sg.updateObjBrowser(1)
+        salome.sg.updateObjBrowser(True)
 
 
 def TEST_getGeomObjectSelected():
index 9ea7f94fae5721f70e83616d5e5fb36b64abeb72..23343c3f73a11905fd5fcdf9bf3d43bc3466eb12 100755 (executable)
@@ -91,5 +91,5 @@ geompy.addToStudy(theShapeForCut, "slot.brep_1")
 Cut_1 = geompy.MakeBoolean(Chamfer_2, theShapeForCut, 2)
 geompy.addToStudy(Cut_1, "Cut_1")
 
-salome.sg.updateObjBrowser(1)
+salome.sg.updateObjBrowser(True)
 
index 6c751fdfda2915cffa97963326f7fc72ae5dcc17..95705536f39e2f8f5f5bd25c30ec6a76e043c5d4 100644 (file)
@@ -55,4 +55,4 @@ if hasInfo == True:
     print "Information about fourth object: ", geompy.getObjectInfo(salome.myStudyId, obj4_entry)
     print "Information about fifth  object: ", geompy.getObjectInfo(salome.myStudyId, obj5_entry)
 
-salome.sg.updateObjBrowser(1)
+salome.sg.updateObjBrowser(True)
index f5cfda5781d1d21eb0512930c3c494a5c3df9f8b..c33b2c446731fd60b0f7c8725f6bd2b4f71abf5a 100644 (file)
@@ -42,4 +42,4 @@ smesh = None
 
 GEOM_Spanner.MakeSpanner(geompy, math, isBlocksTest, isMeshTest, smesh)
 
-salome.sg.updateObjBrowser(1);
+salome.sg.updateObjBrowser(True);
index 156ab86ecde3ad6124389fc76ae1785a1ccfe358..8f2fd6f84ad853d26aaef73ae8edb1009edc5f0f 100755 (executable)
@@ -41,7 +41,7 @@ geomgui = salome.ImportComponentGUI("GEOM")
 import salome_ComponentGUI
 def addToStudy(shape, name):
     i = geompy.addToStudy(shape, name)
-    salome.sg.updateObjBrowser(0)
+    salome.sg.updateObjBrowser(False)
     if not isinstance(geomgui, type(salome_ComponentGUI)):
         geomgui.createAndDisplayGO(i)
     return i
index 3cb641ffb46d9cfd9ebefef17bc7a85eef9189f0..c776a0366808ec9cd6dd4e2360aae488ac22b06a 100755 (executable)
@@ -48,7 +48,7 @@ geomgui = salome.ImportComponentGUI("GEOM")
 
 def addToStudy(shape, name):
     i = geompy.addToStudy(shape, name)
-    salome.sg.updateObjBrowser(0)
+    salome.sg.updateObjBrowser(False)
 #    geomgui.createAndDisplayGO(i)
     return i
 
index 686ea936a229414ef70e4af459e374e09daf60f2..1a496174d0cab1073f3b7218899cca122d6bfdf5 100755 (executable)
@@ -159,7 +159,7 @@ weldId = geompy.addToStudy(weld,"weld")
 #
 assemblage = geompy.Partition([base ,weld ,trav])
 assemblageId = geompy.addToStudy(assemblage, "assemblage")
-salome.sg.updateObjBrowser(1)
+salome.sg.updateObjBrowser(True)
 #
 # Display
 #
index eaccdbe5f937539b9661c159240a51cd22479605..0278053e49e648cfca3d691795976734f1f14ce0 100755 (executable)
@@ -57,4 +57,4 @@ geompy.addToStudy(Curve_1, "Curve_1")
 Line_1 = geompy.MakeLineTwoPnt(Vertex_4, Vertex_5)
 geompy.addToStudy(Line_1, "Line_1")
 
-salome.sg.updateObjBrowser(1)
+salome.sg.updateObjBrowser(True)
index da17162165e08d6884257dbe35e195de57240a05..7f1633502ea838b86a7aee1c99ec5d2fa8a1c3c6 100755 (executable)
@@ -87,4 +87,4 @@ else:
     salome.myStudyManager.SaveAs(theFilenameToSave, salome.myStudy, 0)
     
 
-salome.sg.updateObjBrowser(1)
+salome.sg.updateObjBrowser(True)
index 13b01a41c3fa4d94e1a241ccb08385d64b13f3b8..e33690b3f6901d6824a6a0be6f4a9453ee004273 100755 (executable)
@@ -80,4 +80,4 @@ id_Face_4 = geompy.addToStudyInFather(Compound_1,Compound_1_faces[3], "Face_4")
 id_Compound_2 = geompy.addToStudy(Compound_2, "Compound_2")
 id_Solid_2 = geompy.addToStudyInFather(Compound_2,Compound_2_solids[1], "Solid_2")
 
-salome.sg.updateObjBrowser(1)
+salome.sg.updateObjBrowser(True)
index 545fe870447417c7ce1163f904574029e6f80a17..65111eb68819c4457c44bb4530020d78b188474a 100755 (executable)
@@ -63,4 +63,4 @@ geompy.addToStudy(Edge_4, "Edge_4")
 Wire_1 = geompy.MakeWire([Edge_1, Edge_2, Edge_3, Edge_4])
 geompy.addToStudy(Wire_1, "Wire_1")
 
-salome.sg.updateObjBrowser(1)
+salome.sg.updateObjBrowser(True)
index e694eae03eb0e1c5d43717bc7b11826ec839da05..253951b29ae965979864f02f72d2d7dfcd765d16 100755 (executable)
@@ -111,4 +111,4 @@ for i in range (0, NbExplodedVertices_Face_18):
    name = "Vertex_" + str(NbExplodedVertices_Box_1+NbExplodedVertices_Face_7+NbExplodedVertices_Face_10+NbExplodedVertices_Face_15+i+1)
    geompy.addToStudyInFather(ListOfFaces_Partition_1[NbExplodedFaces_Partition_1-1], ListOfVertices_Face_18[i], name)
 
-salome.sg.updateObjBrowser(1)
+salome.sg.updateObjBrowser(True)
index 54b41f5f6c715c4d0a6217d33abcd60a0f4e2edf..a7fced187856d4366aca7d31d24459f6f7e21777 100644 (file)
@@ -13408,7 +13408,7 @@ class geomBuilder(object, GEOM._objref_GEOM_Gen):
             self.addToStudyInFather(shape, group_edges, "Group of edges with " + `min_length`
                                     + left_str + "length" + right_str + `max_length`)
 
-            sg.updateObjBrowser(1)
+            sg.updateObjBrowser(True)
 
             return group_edges
 
index 4acfde8418fa8b25926249460f7b17c528514a96..965f17c96508c9bdede516d97505ff74f1b9c6e7 100644 (file)
@@ -48,7 +48,7 @@
 #  geompy.addToStudy( Sketch_1, 'Sketch_1' )
 #
 #  # update object browser
-#  salome.sg.updateObjBrowser(1)
+#  salome.sg.updateObjBrowser(True)
 #  @endcode
 #  @n Additionnal examples can be found as unit tests in the source code.
 #  @}