PATH: More reasonble defaults for new tools

This commit is contained in:
sliptonic
2016-12-03 15:06:15 -06:00
parent 68d3e18ab4
commit fe291607a4
3 changed files with 77 additions and 56 deletions

View File

@@ -356,7 +356,6 @@ class EditorPanel():
pass
def getType(self, tooltype):
print("tooltype: ", tooltype)
"gets a combobox index number for a given type or viceversa"
toolslist = ["Drill", "CenterDrill", "CounterSink", "CounterBore",
"Reamer", "Tap", "EndMill", "SlotCutter", "BallEndMill",
@@ -389,8 +388,9 @@ class EditorPanel():
def addTool(self):
t = Path.Tool()
print (t)
print ("adding a new tool")
editform = FreeCADGui.PySideUic.loadUi(":/panels/ToolEdit.ui")
r = editform.exec_()
if r:
if editform.NameField.text():