Hi,
I'm pretty new to pyglet, and actually to python kind of the same.
I'm developing a small app without GUI that would have to be able to play songs and stop them according to some data that comes from a serial device.
The serial interfacing works perfectly, but I can't manage to make pyglet work "asynchronic" without a GUI. I have seen that it is easy to do it with window events, but since my inputs come from data read by the same python programme, I don't know how to do it.
Summing up, I would like the following:
[do events]...
if(serial.order='stop'):
my_player.stop()
It could be possible with threading, but there should be for sure an easy way to do it.
Thanks a lot in advance.