Skip to content

Commit

Permalink
revert docstring format for help box formatting.
Browse files Browse the repository at this point in the history
log levels reset to INFO
remove unnecessary comments.
  • Loading branch information
sliptonic committed Nov 22, 2020
1 parent 634fce6 commit 56b6874
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 18 deletions.
9 changes: 0 additions & 9 deletions src/Mod/Path/InitGui.py
Expand Up @@ -77,15 +77,6 @@ def Initialize(self):
from PathScripts import PathToolBitCmd
from PathScripts import PathToolBitLibraryCmd


#if PathPreferences.experimentalFeaturesEnabled():
# #toolbitcmdlist = PathToolBitCmd.CommandList + ["Separator"] + PathToolBitLibraryCmd.CommandList + ["Path_ToolController", "Separator"]
# toolbitcmdlist = PathToolBitLibraryCmd.MenuList
# self.toolbitctxmenu = ["Path_ToolBitLibraryLoad", "Path_ToolController"]
#else:
# toolbitcmdlist = []
# self.toolbitctxmenu = []

import PathCommands
PathGuiInit.Startup()

Expand Down
4 changes: 2 additions & 2 deletions src/Mod/Path/PathScripts/PathToolBitEdit.py
Expand Up @@ -31,8 +31,8 @@

from PySide import QtCore, QtGui

PathLog.setLevel(PathLog.Level.DEBUG, PathLog.thisModule())
PathLog.trackModule(PathLog.thisModule())
PathLog.setLevel(PathLog.Level.INFO, PathLog.thisModule())
# PathLog.trackModule(PathLog.thisModule())


# Qt translation handling
Expand Down
12 changes: 5 additions & 7 deletions src/Mod/Path/PathScripts/PathToolBitGui.py
Expand Up @@ -42,8 +42,8 @@ def translate(context, text, disambig=None):
return QtCore.QCoreApplication.translate(context, text, disambig)


PathLog.setLevel(PathLog.Level.DEBUG, PathLog.thisModule())
PathLog.trackModule(PathLog.thisModule())
PathLog.setLevel(PathLog.Level.INFO, PathLog.thisModule())
# PathLog.trackModule(PathLog.thisModule())


class ViewProvider(object):
Expand Down Expand Up @@ -171,11 +171,9 @@ def setupUi(self):
class ToolBitGuiFactory(PathToolBit.ToolBitFactory):

def Create(self, name='ToolBit', shapeFile=None):
'''
Create(name = 'ToolBit') ... creates a new tool bit.
It is assumed the tool will be edited immediately so the internal
bit body is still attached.
'''
'''Create(name = 'ToolBit') ... creates a new tool bit.
It is assumed the tool will be edited immediately so the internal bit body is still attached.'''

FreeCAD.ActiveDocument.openTransaction(translate('PathToolBit',
'Create ToolBit'))
tool = PathToolBit.ToolBitFactory.Create(self, name, shapeFile)
Expand Down

0 comments on commit 56b6874

Please sign in to comment.