From 02be0b851061ec294e1e1453db4b87954fe0961d Mon Sep 17 00:00:00 2001 From: Marius Stanciu Date: Tue, 10 Sep 2019 04:44:18 +0300 Subject: [PATCH] - made changing the Plot kind in CNCJob selected tab, threaded --- FlatCAMObj.py | 7 ++++++- README.md | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/FlatCAMObj.py b/FlatCAMObj.py index 54247b1c..0ce36c83 100644 --- a/FlatCAMObj.py +++ b/FlatCAMObj.py @@ -5894,7 +5894,12 @@ class FlatCAMCNCjob(FlatCAMObj, CNCjob): def on_plot_kind_change(self): kind = self.ui.cncplot_method_combo.get_value() - self.plot(kind=kind) + + def worker_task(): + with self.app.proc_container.new(_("Plotting...")): + self.plot(kind=kind) + + self.app.worker_task.emit({'fcn': worker_task, 'params': []}) def on_exportgcode_button_click(self, *args): self.app.report_usage("cncjob_on_exportgcode_button") diff --git a/README.md b/README.md index b7e1614b..6d40ed27 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,7 @@ CAD program, and create G-Code for Isolation routing. - made isolation threaded - fixed a small typo in TclCommandCopperCLear +- made changing the Plot kind in CNCJob selected tab, threaded 9.09.2019