revert docstring format for help box formatting.

log levels reset to INFO
remove unnecessary comments.
This commit is contained in:
sliptonic
2020-11-22 11:08:28 -06:00
parent 3a8f40a458
commit 015250c810
3 changed files with 7 additions and 18 deletions

View File

@@ -77,15 +77,6 @@ class PathWorkbench (Workbench):
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()

View File

@@ -31,8 +31,8 @@ import re
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

View File

@@ -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):
@@ -171,11 +171,9 @@ class TaskPanel:
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)