non-working commit of autoPyLoT functionality in overview window
This commit is contained in:
@@ -4,8 +4,9 @@ from PySide.QtCore import QThread, Signal
|
||||
class WorkerThread(QThread):
|
||||
message = Signal(str)
|
||||
|
||||
def __init__(self, func, data, param):
|
||||
def __init__(self, parent, func, data, param):
|
||||
super(WorkerThread, self).__init__()
|
||||
self.setParent(parent)
|
||||
self.func = func
|
||||
self.data = data
|
||||
self.param = param
|
||||
@@ -13,7 +14,12 @@ class WorkerThread(QThread):
|
||||
def run(self):
|
||||
sys.stdout = self
|
||||
|
||||
self.func(self.data, self.param)
|
||||
picks = self.func(self.data, self.param)
|
||||
|
||||
try:
|
||||
self.parent().addPicks(picks)
|
||||
except AttributeError:
|
||||
print picks
|
||||
|
||||
def write(self, text):
|
||||
self.message.emit(text)
|
||||
|
||||
Reference in New Issue
Block a user