Did I find the right examples for you? yes no

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)

src/p/y/PyPRP-HEAD/PyPRP/prp_Functions.py   PyPRP(Download)
    scene.link(obj)
    #obj.addProperty("name",name)
    obj.addProperty("type","swpoint")
    if page!=0:
        obj.addProperty("page_num",str(page))

src/p/y/PyPRP-HEAD/PyPRP/prp_ObjClasses.py   PyPRP(Download)
        # Add page_num property
        if self.getPageNum() != 0: # but only if it's not page 0
            obj.addProperty("page_num",str(self.getPageNum()))
 
    def deldefaultproperty(self,obj,propertyname,defaultvalue):