Преглед изворни кода

- made changing the Plot kind in CNCJob selected tab, threaded

Marius Stanciu пре 6 година
родитељ
комит
02be0b8510
2 измењених фајлова са 7 додато и 1 уклоњено
  1. 6 1
      FlatCAMObj.py
  2. 1 0
      README.md

+ 6 - 1
FlatCAMObj.py

@@ -5894,7 +5894,12 @@ class FlatCAMCNCjob(FlatCAMObj, CNCjob):
 
 
     def on_plot_kind_change(self):
     def on_plot_kind_change(self):
         kind = self.ui.cncplot_method_combo.get_value()
         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):
     def on_exportgcode_button_click(self, *args):
         self.app.report_usage("cncjob_on_exportgcode_button")
         self.app.report_usage("cncjob_on_exportgcode_button")

+ 1 - 0
README.md

@@ -13,6 +13,7 @@ CAD program, and create G-Code for Isolation routing.
 
 
 - made isolation threaded
 - made isolation threaded
 - fixed a small typo in TclCommandCopperCLear
 - fixed a small typo in TclCommandCopperCLear
+- made changing the Plot kind in CNCJob selected tab, threaded
 
 
 9.09.2019
 9.09.2019