I've posted some concept-code that integrates twisted and pyglet along the same lines as the pyui example.
http://groups.google.com/group/pyglet-users/web/twistedpyglet.tgz This is a simple game, demonstrating back and forth communication over the AMP protocol. I've done this by patching a new method into EventLoop (and, to be honest, I have only done it for CarbonEventLoop, so this will only work on a mac) called pump(). This method is the same as run(), except it is always non-blocking, and yields at the end of the while loop. (So adding handling for win/linux should be easy) This yield returns control to the twisted reactor, which schedules a gui update every 10ms. Obviously this can't really be taken seriously as it is, but perhaps the pyglet EventLoop could provide something along these lines. John --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pyglet-users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pyglet-users?hl=en -~----------~----~----~----~------~----~------~--~---
