black reformat
black reformat for PathCommands Black reform PathCopy Black reform PathComment Black reformat PathCustom/gui Black reformat PathUtil/PathUtils Black reformat PathHop Black reformat PathGeom Black reformat Black reformat Black reformat Black reformat Black reformat black reformat Black reformat black
This commit is contained in:
@@ -48,8 +48,12 @@ class ObjectCustom(PathOp.ObjectOp):
|
||||
return PathOp.FeatureTool | PathOp.FeatureCoolant
|
||||
|
||||
def initOperation(self, obj):
|
||||
obj.addProperty("App::PropertyStringList", "Gcode", "Path",
|
||||
QtCore.QT_TRANSLATE_NOOP("PathCustom", "The gcode to be inserted"))
|
||||
obj.addProperty(
|
||||
"App::PropertyStringList",
|
||||
"Gcode",
|
||||
"Path",
|
||||
QtCore.QT_TRANSLATE_NOOP("PathCustom", "The gcode to be inserted"),
|
||||
)
|
||||
|
||||
obj.Proxy = self
|
||||
|
||||
@@ -69,7 +73,7 @@ def SetupProperties():
|
||||
|
||||
|
||||
def Create(name, obj=None, parentJob=None):
|
||||
'''Create(name) ... Creates and returns a Custom operation.'''
|
||||
"""Create(name) ... Creates and returns a Custom operation."""
|
||||
if obj is None:
|
||||
obj = FreeCAD.ActiveDocument.addObject("Path::FeaturePython", name)
|
||||
obj.Proxy = ObjectCustom(obj, name, parentJob)
|
||||
|
||||
Reference in New Issue
Block a user