- fixed some of the Tcl Commands that depended on the methods refactored above

This commit is contained in:
Marius Stanciu
2020-10-24 20:28:37 +03:00
committed by Marius
parent 9491bdc4fc
commit 8de411d4c4
7 changed files with 10 additions and 6 deletions

View File

@@ -57,3 +57,5 @@ class TclCommandGetSys(TclCommand):
if name in self.app.defaults:
return self.app.defaults[name]
else:
return "The keyword: %s does not exist as a parameter" % str(name)

View File

@@ -59,4 +59,4 @@ class TclCommandOpenExcellon(TclCommandSignaled):
args['plot'] = False
args['from_tcl'] = True
self.app.open_excellon(filename, **args)
self.app.f_handlers.open_excellon(filename, **args)

View File

@@ -58,4 +58,4 @@ class TclCommandOpenGCode(TclCommandSignaled):
# return "The absolute path to the project file contain spaces which is not allowed.\n" \
# "Please enclose the path within quotes."
self.app.open_gcode(filename, **args)
self.app.f_handlers.open_gcode(filename, **args)

View File

@@ -62,4 +62,4 @@ class TclCommandOpenGerber(TclCommandSignaled):
args['plot'] = False
args['from_tcl'] = True
self.app.open_gerber(filename, outname, **args)
self.app.f_handlers.open_gerber(filename, outname, **args)

View File

@@ -53,4 +53,4 @@ class TclCommandOpenProject(TclCommandSignaled):
# return "The absolute path to the project file contain spaces which is not allowed.\n" \
# "Please enclose the path within quotes."
self.app.open_project(filename, cli=True, plot=False, from_tcl=True)
self.app.f_handlers.open_project(filename, cli=True, plot=False, from_tcl=True)