From b52863a6af89ddd958842f15d5f61f63a9e21fb1 Mon Sep 17 00:00:00 2001 From: Juan Pablo Caram Date: Sat, 31 Oct 2015 18:58:46 -0400 Subject: [PATCH] Added comments. --- FlatCAMObj.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/FlatCAMObj.py b/FlatCAMObj.py index 34cf0079..caeb61d7 100644 --- a/FlatCAMObj.py +++ b/FlatCAMObj.py @@ -139,7 +139,8 @@ class FlatCAMObj(QtCore.QObject): def build_ui(self): """ - Sets up the UI/form for this object. + Sets up the UI/form for this object. Show the UI + in the App. :return: None :rtype: None @@ -289,6 +290,14 @@ class FlatCAMGerber(FlatCAMObj, Gerber): # self.ui.generate_noncopper_button.clicked.connect(self.on_generatenoncopper_button_click) def set_ui(self, ui): + """ + Maps options with GUI inputs. + Connects GUI events to methods. + + :param ui: GUI object. + :type ui: GerberObjectUI + :return: None + """ FlatCAMObj.set_ui(self, ui) FlatCAMApp.App.log.debug("FlatCAMGerber.set_ui()") @@ -932,7 +941,9 @@ class FlatCAMCNCjob(FlatCAMObj, CNCjob): f.write(preamble + '\n' + self.gcode + "\n" + postamble) f.close() + # Just for adding it to the recent files list. self.app.file_opened.emit("cncjob", filename) + self.app.inform.emit("Saved to: " + filename) def on_plot_cb_click(self, *args):