Skip to content

Commit

Permalink
fix lgtm error
Browse files Browse the repository at this point in the history
  • Loading branch information
sliptonic committed Feb 17, 2021
1 parent af721d6 commit f369260
Showing 1 changed file with 1 addition and 45 deletions.
46 changes: 1 addition & 45 deletions src/Mod/Path/PathScripts/PathToolBitLibraryCmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,52 +70,8 @@ def IsActive(self):
def Activated(self):
import PathScripts.PathToolBitLibraryGui as PathToolBitLibraryGui
library = PathToolBitLibraryGui.ToolBitLibrary()
library.open()

# class CommandToolBitLibraryLoad:
# '''
# Command used to load an entire ToolBitLibrary (or part of it) from a file into a job.
# '''

# def __init__(self):
# pass

# def GetResources(self):
# return {'Pixmap': 'Path_ToolTable',
# 'MenuText': QtCore.QT_TRANSLATE_NOOP("PathToolBitLibrary", "Load ToolBit Library"),
# 'ToolTip': QtCore.QT_TRANSLATE_NOOP("PathToolBitLibrary", "Load an entire ToolBit library or part of it into a job")}

# def selectedJob(self):
# if FreeCAD.ActiveDocument:
# sel = FreeCADGui.Selection.getSelectionEx()
# if sel and sel[0].Object.Name[:3] == 'Job':
# return sel[0].Object
# jobs = [o for o in FreeCAD.ActiveDocument.Objects if o.Name[:3] == 'Job']
# if 1 == len(jobs):
# return jobs[0]
# return None

# def IsActive(self):
# return not self.selectedJob() is None

# def Activated(self):
# job = self.selectedJob()
# self.Execute(job)

# @classmethod
# def Execute(cls, job):
# import PathScripts.PathToolBitLibraryGui as PathToolBitLibraryGui
# import PathScripts.PathToolControllerGui as PathToolControllerGui

# library = PathToolBitLibraryGui.ToolBitLibrary()

# if 1 == library.open() and job:
# for nr, tool in library.selectedOrAllTools():
# tc = PathToolControllerGui.Create("TC: {}".format(tool.Label), tool, nr)
# job.Proxy.addToolController(tc)
# FreeCAD.ActiveDocument.recompute()
# return True
# return False
library.open()


if FreeCAD.GuiUp:
Expand Down

0 comments on commit f369260

Please sign in to comment.