|
|
|
|
@ -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() |
|
|
|
|
|