Basic geometry editor for goemetry objects started.

This commit is contained in:
Juan Pablo Caram
2014-10-28 17:39:38 -04:00
parent d5ddd01851
commit 73aa0c38a0
9 changed files with 646 additions and 14 deletions

View File

@@ -1,5 +1,4 @@
from PyQt4 import QtCore
#import Queue
import FlatCAMApp
@@ -16,10 +15,15 @@ class Worker(QtCore.QObject):
def run(self):
FlatCAMApp.App.log.debug("Worker Started!")
# Tasks are queued in the event listener.
self.app.worker_task.connect(self.do_worker_task)
def do_worker_task(self, task):
FlatCAMApp.App.log.debug("Running task: %s" % str(task))
# 'worker_name' property of task allows to target
# specific worker.
if 'worker_name' in task and task['worker_name'] == self.name:
task['fcn'](*task['params'])
return