Typos in programming guide

12 views
Skip to first unread message

Nathan

unread,
Jan 25, 2012, 11:26:32 PM1/25/12
to pyglet...@googlegroups.com
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

Richard Jones

unread,
Jan 31, 2012, 9:37:51 PM1/31/12
to pyglet...@googlegroups.com
Fixed, thanks!

> --
> You received this message because you are subscribed to the Google Groups "pyglet-users" group.
> To post to this group, send email to pyglet...@googlegroups.com.
> To unsubscribe from this group, send email to pyglet-users...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/pyglet-users?hl=en.
>

Reply all
Reply to author
Forward
0 new messages