python - How to integrate zeromq polling into pyqt main loop? -
i've got simple pyside program (my first gui program) in have 2 sliders going -100 100. first slider sends value hardware controller using zeromq. controller drives hardware steering wheel, since steering wheel takes time adjust position desired position, receive feedback wheel want reflect second slider below it. in way, second slider "follows" first 1 show how far steering wheel is:

since both receive , send zeromq messages more or less simultaneously need zeromq polling. worked before, not in pyqt program. kinda lost on or how incorporate zeromq polling in program.
the code have right here: http://pastebin.com/8j5tdpkx
would have kind of tip or hint on incorporate zmq polling in there?
the old-fashioned way use zmq_fd option zmq_getsockopt(3) edge-triggered file descriptor can used in other kinds of event loops.
Comments
Post a Comment