But wait, there is more. Now I can get Bruce to run a presentation but
I can't get it to exit. When running one of the examples
(test_transition.rst) if I press 'escape' whilst the presentation is
running I get this traceback:
Traceback (most recent call last):
File "/private/var/tmp/python/python-30~44/python/Modules/_ctypes/
callbacks.c", line 206, in 'calling callback function'
File "/Users/andy47/Work/halfcooked/Python/pyglet/window/carbon/
__init__.py", line 647, in _on_key_down
self.dispatch_event('on_key_press', symbol, modifiers)
File "/Users/andy47/Work/halfcooked/Python/pyglet/window/
__init__.py", line 1072, in dispatch_event
EventDispatcher.dispatch_event(self, *args)
File "/Users/andy47/Work/halfcooked/Python/pyglet/event.py", line
349, in dispatch_event
if handler(*args):
File "/Users/andy47/Work/src/bruce-tpt/cocos/director.py", line 208,
in on_key_press
director.pop()
File "/Users/andy47/Work/src/bruce-tpt/cocos/director.py", line 332,
in pop
self.dispatch_event("on_pop")
File "/Users/andy47/Work/halfcooked/Python/pyglet/event.py", line
358, in dispatch_event
if getattr(self, event_type)(*args):
File "/Users/andy47/Work/src/bruce-tpt/cocos/director.py", line 335,
in on_pop
self.next_scene = self.scene_stack.pop()
IndexError: pop from empty list
This is on Mac OS X 10.5.4 with the latest trunk