import FreeCAD as App import FreeCADGui as Gui class LaserPath: def __init__(self, obj): obj.addProperty("App::PropertyEnumeration", "pathtype", "Parameter", "How this path is converted to robot") obj.pathtype = ["LIN", "CIRC", "SPLINE"] # obj.addExtension("App::GroupExtensionPython") # obj.Proxy = self def onChanged(self, fp, prop): '''Do something when a property has changed''' #App.Console.PrintMessage("Change property: " + str(prop) + "\n") pass def execute(self, fp): App.Console.PrintMessage("Recompute LaserPath\n")