Commit 0e714445 authored by sumpfralle's avatar sumpfralle

replace the static size description of the tool templates with dynamically generated text


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@875 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent d967a40a
......@@ -2130,7 +2130,9 @@ class ProjectGui:
tool_model.clear()
counter = 0
for tool in self.tool_list:
tool_model.append((counter, counter + 1, tool["name"]))
# add the tool size to the descriptive text
description = "%s (d=%s)" % (tool["name"], 2 * tool["tool_radius"])
tool_model.append((counter, counter + 1, description))
counter += 1
if not new_index is None:
self._treeview_set_active_index(self.tool_editor_table, new_index)
......
......@@ -122,7 +122,7 @@ class ProcessSettings:
BASIC_DEFAULT_CONFIG = """
[ToolDefault]
shape: CylindricalCutter
name: Cylindrical (d=3)
name: Cylindrical
tool_radius: 1.5
torus_radius: 0.25
feedrate: 200
......@@ -163,18 +163,18 @@ feedrate: 200
speed: 1000
[Tool0]
name: Cylindrical (d=3)
name: Cylindrical
shape: CylindricalCutter
tool_radius: 1.5
[Tool1]
name: Toroidal (d=2)
name: Toroidal
shape: ToroidalCutter
tool_radius: 1
torus_radius: 0.2
[Tool2]
name: Spherical (d=1)
name: Spherical
shape: SphericalCutter
tool_radius: 0.5
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment