I'm working an a wxPython program which needs to receive intermittent events
from a user-interface peripheral (a Griffin Powermate knob). The interface to
the device is the event interface in Linux, so I access it like a file. Every
now and then there is data to be read, so I use a select call. Is there a way
to make an event out of this? Or is there a way to add this checking to the
main event loop?
The way I've don it so far is to have a wxTimer which initiates a read to the
device, but this is kind of ugly. I also thought of making a separate thread
to do the same thing, but that seems even more ugly.
Anybody have suggestions of the best way to do this?
Thanks
Matt