X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FGEOM_SWIG%2FGEOM_ObjectInfo.py;h=76f0a0960a491b564bcac71cf4235b59cbb07ebb;hb=d90d0665f75242f11e4065c1ddbd3de402b7e27b;hp=3e74aa8876d2aa431de2acd4d306c2e39abd3deb;hpb=0b9cd952a3bf53ae0f9c7d35332aee072ae14f04;p=modules%2Fgeom.git diff --git a/src/GEOM_SWIG/GEOM_ObjectInfo.py b/src/GEOM_SWIG/GEOM_ObjectInfo.py index 3e74aa887..76f0a0960 100644 --- a/src/GEOM_SWIG/GEOM_ObjectInfo.py +++ b/src/GEOM_SWIG/GEOM_ObjectInfo.py @@ -18,7 +18,7 @@ # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # -# GEOM GEOM_SWIG : binding of C++ omplementaion with Python +# GEOM GEOM_SWIG : binding of C++ implementation with Python # File : GEOM_ObjectInfo.py # Author : Michael ZORIN # Module : GEOM @@ -27,7 +27,7 @@ import salome salome.salome_init() import GEOM from salome.geom import geomBuilder -geompy = geomBuilder.New(salome.myStudy) +geompy = geomBuilder.New() # Create several objects obj1 = geompy.MakeVertex(0.,0.,0.) @@ -49,10 +49,10 @@ obj5_entry = geompy.addToStudy(obj5, "Object5") hasInfo = geompy.hasObjectInfo() print("Check if GEOM module provides information about its objects: ", hasInfo) if hasInfo == True: - print("Information about first object: ", geompy.getObjectInfo(salome.myStudyId, obj1_entry)) - print("Information about second object: ", geompy.getObjectInfo(salome.myStudyId, obj2_entry)) - print("Information about third object: ", geompy.getObjectInfo(salome.myStudyId, obj3_entry)) - print("Information about fourth object: ", geompy.getObjectInfo(salome.myStudyId, obj4_entry)) - print("Information about fifth object: ", geompy.getObjectInfo(salome.myStudyId, obj5_entry)) + print("Information about first object: ", geompy.getObjectInfo(obj1_entry)) + print("Information about second object: ", geompy.getObjectInfo(obj2_entry)) + print("Information about third object: ", geompy.getObjectInfo(obj3_entry)) + print("Information about fourth object: ", geompy.getObjectInfo(obj4_entry)) + print("Information about fifth object: ", geompy.getObjectInfo(obj5_entry)) -salome.sg.updateObjBrowser(True) +salome.sg.updateObjBrowser()