Greetings,

I am trying to get my pyglet project running in Mac OS X.

1.1.3 had a timer problem, and a thread on the interwebs suggesting
running pyglet 1.2dev (from svn). That certainly fixed the timer
problem, but now I have new problem.

In my code, I register an event, but the event handler in 1.2 does not
seem to remember it, and so it exits with an error very early on.

The error is:
    self.dispatch_event('on_event_finish')
  File "/Library/Python/2.5/site-packages/pyglet/event.py", line 346,
in dispatch_event
    assert event_type in self.event_types
AssertionError

The call to register is:
VidaGame.register_event_type('on_event_finish')
where VidaGame is an event.EventDispatcher

The event handler seems to think these are the only events allowed:
['on_insert_text', 'on_delete_text', 'on_style_text']

Has event handling/registering changed in 1.2 from 1.1.3?

Regards,
Luke

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to