- fixed some of the Tcl Commands that depended on the methods refactored above
This commit is contained in:
@@ -18,6 +18,7 @@ CHANGELOG for FlatCAM beta
|
|||||||
- created two new preprocessors (from 'default' and from 'grbl_11') that will have no toolchange commands regardless of the settings in the software
|
- created two new preprocessors (from 'default' and from 'grbl_11') that will have no toolchange commands regardless of the settings in the software
|
||||||
- updated the Turkish translation (by Mehmet Kaya)
|
- updated the Turkish translation (by Mehmet Kaya)
|
||||||
- the methods of the APP class that were the handlers for the File menu are now moved to their oen class
|
- the methods of the APP class that were the handlers for the File menu are now moved to their oen class
|
||||||
|
- fixed some of the Tcl Commands that depended on the methods refactored above
|
||||||
|
|
||||||
23.10.2020
|
23.10.2020
|
||||||
|
|
||||||
|
|||||||
@@ -423,8 +423,6 @@ class App(QtCore.QObject):
|
|||||||
# ############################################################################################################
|
# ############################################################################################################
|
||||||
self.defaults = FlatCAMDefaults(beta=self.beta, version=self.version)
|
self.defaults = FlatCAMDefaults(beta=self.beta, version=self.version)
|
||||||
|
|
||||||
self.defaults["root_folder_path"] = self.app_home
|
|
||||||
|
|
||||||
current_defaults_path = os.path.join(self.data_path, "current_defaults.FlatConfig")
|
current_defaults_path = os.path.join(self.data_path, "current_defaults.FlatConfig")
|
||||||
if user_defaults:
|
if user_defaults:
|
||||||
self.defaults.load(filename=current_defaults_path, inform=self.inform)
|
self.defaults.load(filename=current_defaults_path, inform=self.inform)
|
||||||
@@ -1314,6 +1312,9 @@ class App(QtCore.QObject):
|
|||||||
# ###########################################################################################################
|
# ###########################################################################################################
|
||||||
self.f_handlers = MenuFileHandlers(app=self)
|
self.f_handlers = MenuFileHandlers(app=self)
|
||||||
|
|
||||||
|
# this is calculated in the class above (somehow?)
|
||||||
|
self.defaults["root_folder_path"] = self.app_home
|
||||||
|
|
||||||
# ###########################################################################################################
|
# ###########################################################################################################
|
||||||
# ############################################ SETUP RECENT ITEMS ###########################################
|
# ############################################ SETUP RECENT ITEMS ###########################################
|
||||||
# ###########################################################################################################
|
# ###########################################################################################################
|
||||||
|
|||||||
@@ -57,3 +57,5 @@ class TclCommandGetSys(TclCommand):
|
|||||||
|
|
||||||
if name in self.app.defaults:
|
if name in self.app.defaults:
|
||||||
return self.app.defaults[name]
|
return self.app.defaults[name]
|
||||||
|
else:
|
||||||
|
return "The keyword: %s does not exist as a parameter" % str(name)
|
||||||
|
|||||||
@@ -59,4 +59,4 @@ class TclCommandOpenExcellon(TclCommandSignaled):
|
|||||||
|
|
||||||
args['plot'] = False
|
args['plot'] = False
|
||||||
args['from_tcl'] = True
|
args['from_tcl'] = True
|
||||||
self.app.open_excellon(filename, **args)
|
self.app.f_handlers.open_excellon(filename, **args)
|
||||||
|
|||||||
@@ -58,4 +58,4 @@ class TclCommandOpenGCode(TclCommandSignaled):
|
|||||||
# return "The absolute path to the project file contain spaces which is not allowed.\n" \
|
# return "The absolute path to the project file contain spaces which is not allowed.\n" \
|
||||||
# "Please enclose the path within quotes."
|
# "Please enclose the path within quotes."
|
||||||
|
|
||||||
self.app.open_gcode(filename, **args)
|
self.app.f_handlers.open_gcode(filename, **args)
|
||||||
|
|||||||
@@ -62,4 +62,4 @@ class TclCommandOpenGerber(TclCommandSignaled):
|
|||||||
|
|
||||||
args['plot'] = False
|
args['plot'] = False
|
||||||
args['from_tcl'] = True
|
args['from_tcl'] = True
|
||||||
self.app.open_gerber(filename, outname, **args)
|
self.app.f_handlers.open_gerber(filename, outname, **args)
|
||||||
|
|||||||
@@ -53,4 +53,4 @@ class TclCommandOpenProject(TclCommandSignaled):
|
|||||||
# return "The absolute path to the project file contain spaces which is not allowed.\n" \
|
# return "The absolute path to the project file contain spaces which is not allowed.\n" \
|
||||||
# "Please enclose the path within quotes."
|
# "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)
|
||||||
|
|||||||
Reference in New Issue
Block a user