Browse Source

removed parser.isDone reference

dev
Clemens Richter 9 years ago
parent
commit
89c4047d8b
  1. 10
      python/tmc_parser.py

10
python/tmc_parser.py

@ -255,6 +255,7 @@ class tmc_parser(gr.sync_block):
return return_string return return_string
class tmc_parser_Widget(QtGui.QWidget): class tmc_parser_Widget(QtGui.QWidget):
def print_tmc_msg(self,tmc_msg): def print_tmc_msg(self,tmc_msg):
print("print:",end="")
self.logMutex.acquire(1) self.logMutex.acquire(1)
print("got mutex,",end="") print("got mutex,",end="")
sb=self.logOutput.verticalScrollBar() sb=self.logOutput.verticalScrollBar()
@ -286,15 +287,20 @@ class tmc_parser_Widget(QtGui.QWidget):
#code.interact(local=locals()) #code.interact(local=locals())
self.logMutex.release(1) self.logMutex.release(1)
def filterChanged(self): def filterChanged(self):
print("filterChanged:",end="")
self.logMutex.acquire(1) self.logMutex.acquire(1)
self.parser.isDone=False print("got mutex,",end="")
ef=unicode(self.event_filter.text().toUtf8(), encoding="UTF-8").lower() ef=unicode(self.event_filter.text().toUtf8(), encoding="UTF-8").lower()
lf=unicode(self.location_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() self.logOutput.clear()
print("cleared,",end="")
filters=[{"type":"location", "str":lf},{"type":"event", "str":ef}] filters=[{"type":"location", "str":lf},{"type":"event", "str":ef}]
self.logOutput.append(Qt.QString.fromUtf8(self.parser.tmc_messages.getLogString(filters))) self.logOutput.append(Qt.QString.fromUtf8(self.parser.tmc_messages.getLogString(filters)))
print("filter changed") print("appended,",end="")
self.logMutex.release(1) self.logMutex.release(1)
print("done")
def __init__(self, parser,maxheight): def __init__(self, parser,maxheight):
QtGui.QWidget.__init__(self) QtGui.QWidget.__init__(self)
layout = Qt.QVBoxLayout() layout = Qt.QVBoxLayout()

Loading…
Cancel
Save