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:
sliptonic
2021-12-17 17:15:13 -06:00
parent c055ac4619
commit 0fae42230c
18 changed files with 1728 additions and 822 deletions

View File

@@ -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)