Hello Again,
I would like to update a pyglet Label from some other thread. It seems that this won't work directly (as is usual with ui toolkits)
What is the general solution to this?
At the moment I am trying to use pyglet.schedule_once( update_function, 0) which nearly works, but does not call the update function unless the mouse is moved around first.
Looking the pyglet code the scheduled functions go into an a dict, which may work, but there are is no locking in these functions.
The other solution I have in mind is to write a customised pyglet run loop that uses a python Queue to call callback functions.
- Jason