def createCV_canny():
print "create CV canny ..."
obj=FreeCAD.ActiveDocument.addObject('App::DocumentObjectGroupPython','Canny')
obj.addProperty('App::PropertyFile','imageFile',"base").imageFile='/home/thomas/Bilder/bn_900.png'
obj.addProperty('App::PropertyLink','imageNode',"base")
obj.addProperty('App::PropertyBool','imageFromNode',"base").imageFromNode=False
obj.addProperty('App::PropertyInteger','minVal',"canny").minVal=100
obj.addProperty('App::PropertyInteger','maxVal',"canny").maxVal=200
_CV_canny(obj,'/icons/bounder.png')
_ViewProviderCV_canny(obj.ViewObject,__dir__+ '/icons/icon1.svg')
app=MyApp()
miki2=miki.Miki()
miki2.app=app
app.root=miki2
app.obj=obj
obj.ViewObject.Proxy.cmenu.append(["Dialog",lambda:miki2.run(MyApp.s6)])
obj.ViewObject.Proxy.edit= lambda:miki2.run(MyApp.s6)
return obj
#
# derived classes
#
评论列表
文章目录