35 from python_qt_binding.QtCore
import QCoreApplication, QEvent
36 from python_qt_binding.QtCore
import qWarning
42 super(ListenerEvent, self).
__init__(QEvent.User)
49 Waits for new messages loaded on the given topic, then calls the message listener.
50 One thread per listener, topic pair.
54 threading.Thread.__init__(self)
66 Thread body. loops and notifies the listener of new messages
81 QCoreApplication.postEvent(self.
listener, event)
82 except Exception
as ex:
83 qWarning(
'Error notifying listener %s: %s' % (type(self.
listener), str(ex)))