Thanks for you reply. Manual event dispatching is good, but I want to avoid busy waiting which consumes CPU 100%. The problem is that I can't wait on both glib and pyglet event loops. Twisted seems to provide custom reactors such as gtk2reactor or glib2reactor which integrate gtk or glib event loops. Is there a way to avoid busy waiting?
Regards, Kwang Yul Seo On Mon, Jun 9, 2008 at 9:39 PM, Alex Holkner <[EMAIL PROTECTED]> wrote: > > On 6/9/08, KwangYul Seo <[EMAIL PROTECTED]> wrote: > > Hello, > > > > I want to use GStreamer and pyglet together. However, I have two event > loops > > to use both libraries. > > > > # Glib event loop > > import gobject > > main_loop = gobject.MainLoop() > > main_loop.run() > > > > # Pyglet event loop > > import pyglet.app > > pyglet.app.run() > > > > What is the best way to combine these two event loops? > > You can use pyglet without pyglet.app: > > > http://pyglet.org/doc/1.1/programming_guide/dispatching_events_manually.html > > Alex. > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
