You can take a look at pyglet.clock.schedule. There you can add a callback to be called on every frame rendered.
Rob On 11 Aug 2015 04:51, "Jesse Cox" <ki4...@gmail.com> wrote: > I'm trying to build a media player in OpenGL. The problem I'm having is, I > can't depend on the window to trigger an event for updating. The song > location bar needs to keep up to date without triggering events. Is this > possible? > > -- > You received this message because you are subscribed to the Google Groups > "pyglet-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to pyglet-users+unsubscr...@googlegroups.com. > To post to this group, send email to pyglet-users@googlegroups.com. > Visit this group at http://groups.google.com/group/pyglet-users. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "pyglet-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to pyglet-users+unsubscr...@googlegroups.com. To post to this group, send email to pyglet-users@googlegroups.com. Visit this group at http://groups.google.com/group/pyglet-users. For more options, visit https://groups.google.com/d/optout.