- Gerber Editor - working on a new sub-tool: Import Shape which should allow importing polygons from other Gerber objects

This commit is contained in:
Marius Stanciu
2020-12-27 01:26:52 +02:00
committed by Marius
parent 1495624a9e
commit ab7eca7b7d
5 changed files with 374 additions and 19 deletions

View File

@@ -1585,11 +1585,11 @@ class ToolIsolation(AppTool, Gerber):
if self.ui.valid_cb.get_value() is True:
self.find_safe_tooldia_multiprocessing()
def worker_task(iso_obj):
with self.app.proc_container.new('%s ...' % _("Isolating")):
self.isolate_handler(iso_obj)
def worker_task(iso_class):
with iso_class.app.proc_container.new('%s ...' % _("Isolating")):
iso_class.isolate_handler(iso_class.grb_obj)
self.app.worker_task.emit({'fcn': worker_task, 'params': [self.grb_obj]})
self.app.worker_task.emit({'fcn': worker_task, 'params': [self]})
def isolate_handler(self, isolated_obj):
"""