Fixed, thanks! On 26 January 2012 15:26, Nathan <[email protected]> wrote: > I noticed a couple typos in the programming guide tonight. > > On the page: > > http://pyglet.org/doc/programming_guide/creating_your_own_event_dispatcher.html > > It says: > > # The subject > class ClockTimer(pyglet.event.EventDispatcher): > def tick(self): > self.dispatch_events('on_update') > ClockTimer.register_event('on_update') > > ...but I believe it should say: > > # The subject > class ClockTimer(pyglet.event.EventDispatcher): > def tick(self): > self.dispatch_event('on_update') > ClockTimer.register_event_type('on_update') > > > - no 's' on self.dispatch_event on the second to last line > - register_event_type, not register_event on the last line. > > ~ Nathan > > -- > 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. >
-- 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.
