From 89c4047d8bc698309adaafc9428db703540ec2da Mon Sep 17 00:00:00 2001 From: csrichter Date: Fri, 28 Apr 2017 16:00:41 +0200 Subject: [PATCH] removed parser.isDone reference --- python/tmc_parser.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/python/tmc_parser.py b/python/tmc_parser.py index bab1969..ce611e8 100644 --- a/python/tmc_parser.py +++ b/python/tmc_parser.py @@ -255,6 +255,7 @@ class tmc_parser(gr.sync_block): return return_string class tmc_parser_Widget(QtGui.QWidget): def print_tmc_msg(self,tmc_msg): + print("print:",end="") self.logMutex.acquire(1) print("got mutex,",end="") sb=self.logOutput.verticalScrollBar() @@ -286,15 +287,20 @@ class tmc_parser_Widget(QtGui.QWidget): #code.interact(local=locals()) self.logMutex.release(1) def filterChanged(self): + print("filterChanged:",end="") self.logMutex.acquire(1) - self.parser.isDone=False + print("got mutex,",end="") + ef=unicode(self.event_filter.text().toUtf8(), encoding="UTF-8").lower() lf=unicode(self.location_filter.text().toUtf8(), encoding="UTF-8").lower() + print("read filters,",end="") self.logOutput.clear() + print("cleared,",end="") filters=[{"type":"location", "str":lf},{"type":"event", "str":ef}] self.logOutput.append(Qt.QString.fromUtf8(self.parser.tmc_messages.getLogString(filters))) - print("filter changed") + print("appended,",end="") self.logMutex.release(1) + print("done") def __init__(self, parser,maxheight): QtGui.QWidget.__init__(self) layout = Qt.QVBoxLayout()