- multiple fixes in the Tcl commands (especially regarding the interchange between True/false and 1/0 values)
- updated the help for all Tcl Commands - in Tcl Shell, the 'help' command will add also a brief description for each command in the list
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
from tclCommands.TclCommand import TclCommand
|
||||
|
||||
import collections
|
||||
from copy import copy
|
||||
|
||||
|
||||
class TclCommandExportSVG(TclCommand):
|
||||
@@ -14,6 +15,8 @@ class TclCommandExportSVG(TclCommand):
|
||||
# List of all command aliases, to be able use old names for backward compatibility (add_poly, add_polygon)
|
||||
aliases = ['export_svg']
|
||||
|
||||
description = '%s %s' % ("--", "Export a Geometry object as a SVG File.")
|
||||
|
||||
# Dictionary of types from Tcl command, needs to be ordered
|
||||
arg_names = collections.OrderedDict([
|
||||
('name', str),
|
||||
@@ -31,10 +34,11 @@ class TclCommandExportSVG(TclCommand):
|
||||
|
||||
# structured help for current command, args needs to be ordered
|
||||
help = {
|
||||
'main': "Export a Geometry Object as a SVG File.",
|
||||
'main': "Export a Geometry object as a SVG File.",
|
||||
'args': collections.OrderedDict([
|
||||
('name', 'Name of the object export. Required.'),
|
||||
('filename', 'Path to the file to export.'),
|
||||
('filename', 'Absolute path to file to export.\n'
|
||||
'WARNING: no spaces are allowed. If unsure enclose the entire path with quotes.'),
|
||||
('scale_factor', 'Multiplication factor used for scaling line widths during export.')
|
||||
]),
|
||||
'examples': ['export_svg my_geometry my_file.svg']
|
||||
|
||||
Reference in New Issue
Block a user