Commit 0125e03a authored by sumpfralle's avatar sumpfralle

some commandline interface improvements


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@599 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent 07e33061
...@@ -18,7 +18,15 @@ include /usr/share/cdbs/1/rules/debhelper.mk ...@@ -18,7 +18,15 @@ include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/python-distutils.mk include /usr/share/cdbs/1/class/python-distutils.mk
include /usr/share/cdbs/1/rules/simple-patchsys.mk include /usr/share/cdbs/1/rules/simple-patchsys.mk
# clean the manpage
clean:
make -C man clean
# build the manpage
build:
make -C man
# install the .desktop file # install the .desktop file
install/pycam:: install:
cp -v desktop/pycam.desktop `pwd`/debian/pycam/usr/share/applications/ cp -v desktop/pycam.desktop `pwd`/debian/pycam/usr/share/applications/
This diff is collapsed.
...@@ -233,7 +233,7 @@ class ProjectGui: ...@@ -233,7 +233,7 @@ class ProjectGui:
self.log_model = self.gui.get_object("LogWindowList") self.log_model = self.gui.get_object("LogWindowList")
# set defaults # set defaults
self.model = None self.model = None
self.toolpath = pycam.Toolpath.ToolPathList() self.toolpath = pycam.Toolpath.ToolpathList()
self.cutter = None self.cutter = None
self.tool_list = [] self.tool_list = []
self.process_list = [] self.process_list = []
......
...@@ -725,6 +725,9 @@ class ToolpathSettings: ...@@ -725,6 +725,9 @@ class ToolpathSettings:
+ "(%s -> %s): %s" % (section, key, value_raw)) + "(%s -> %s): %s" % (section, key, value_raw))
config_dict[key] = value config_dict[key] = value
def __str__(self):
return self.get_string()
def get_string(self): def get_string(self):
result = [] result = []
for config_dict, section in ((self.bounds, "Bounds"), for config_dict, section in ((self.bounds, "Bounds"),
......
...@@ -113,7 +113,7 @@ def generate_toolpath(model, tool_settings=None, ...@@ -113,7 +113,7 @@ def generate_toolpath(model, tool_settings=None,
@type calculation_backend: str | None @type calculation_backend: str | None
@value calculation_backend: any member of the CALCULATION_BACKENDS set @value calculation_backend: any member of the CALCULATION_BACKENDS set
The default is the triangular collision detection. The default is the triangular collision detection.
@rtype: pycam.Toolpath.ToolPath | str @rtype: pycam.Toolpath.Toolpath | str
@return: the resulting toolpath object or an error string in case of invalid @return: the resulting toolpath object or an error string in case of invalid
arguments arguments
""" """
......
...@@ -20,7 +20,7 @@ You should have received a copy of the GNU General Public License ...@@ -20,7 +20,7 @@ You should have received a copy of the GNU General Public License
along with PyCAM. If not, see <http://www.gnu.org/licenses/>. along with PyCAM. If not, see <http://www.gnu.org/licenses/>.
""" """
__all__ = ["simplify_toolpath", "ToolPathList", "ToolPath", "Generator"] __all__ = ["simplify_toolpath", "ToolpathList", "Toolpath", "Generator"]
from pycam.Geometry.Point import Point from pycam.Geometry.Point import Point
from pycam.Geometry.utils import number from pycam.Geometry.utils import number
...@@ -58,13 +58,13 @@ def simplify_toolpath(path): ...@@ -58,13 +58,13 @@ def simplify_toolpath(path):
index += 1 index += 1
class ToolPathList(list): class ToolpathList(list):
def add_toolpath(self, toolpath, name, toolpath_settings): def add_toolpath(self, toolpath, name, toolpath_settings):
self.append(ToolPath(toolpath, name, toolpath_settings)) self.append(Toolpath(toolpath, name, toolpath_settings))
class ToolPath: class Toolpath(object):
def __init__(self, toolpath, name, toolpath_settings): def __init__(self, toolpath, name, toolpath_settings):
self.toolpath = toolpath self.toolpath = toolpath
......
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