-
Notifications
You must be signed in to change notification settings - Fork 104
Description
Dear Niklas,
Sorry, I've completely rewritten my question here. Previously it was different, but formulated in a wrong way. Hopefully it didn't bother you)
I successfully run your example files, but I face an issue during the use of Listener class in my application. I'm making a PyQt app that visualizes the EMG and IMU data in real time. I've written my own listener, based on your example, that puts all the data into a Queue shared between the listener and parent widget. The problem is that I don't receive orientation events at all. Let's take this code for example:
def on_event(self, kind, event): print(kind)
When a listener with this code is created in main(), like in your example, it prints this:
...
EventType: emg
EventType: emg
EventType: emg
EventType: emg
EventType: orientation
...
in a repetitive way and I find it completely correct.
But when I create the same listener in my widget, it gives only :
...
EventType: emg
...
The listener class I use in both examples is the same. The difference is whether I create it in main() function or in my app's widget. Do you have some idea about this issue?
I do it on OSX El Capitan, armbands are up to date.
Thank you very much!