|
本帖最后由 zhyk 于 2012-9-6 15:09 编辑
Traceback (most recent call last):
File "src/start_client.py", line 109, in <module>
start_ui()
File "/home/zhyk/Downloads/thb/src/client/ui/entry.py", line 91, in start_ui
pyglet.app.run()
File "/usr/lib/pymodules/python2.7/pyglet/app/__init__.py", line 264, in run
EventLoop().run()
File "/usr/lib/pymodules/python2.7/pyglet/app/xlib.py", line 82, in run
window.dispatch_platform_event(e)
File "/usr/lib/pymodules/python2.7/pyglet/window/xlib/__init__.py", line 1183, in dispatch_platform_event
event_handler(e)
File "/usr/lib/pymodules/python2.7/pyglet/window/xlib/__init__.py", line 1457, in _event_button
x, y, button, modifiers)
File "/usr/lib/pymodules/python2.7/pyglet/window/__init__.py", line 1219, in dispatch_event
EventDispatcher.dispatch_event(self, *args)
File "/usr/lib/pymodules/python2.7/pyglet/event.py", line 340, in dispatch_event
if handler(*args):
File "/home/zhyk/Downloads/thb/src/client/ui/base/baseclasses.py", line 328, in on_mouse_release
self._position_events('on_mouse_click', x, y, button, modifier)
File "/home/zhyk/Downloads/thb/src/client/ui/base/baseclasses.py", line 314, in _position_events
dispatch(self, x, y)
File "/home/zhyk/Downloads/thb/src/client/ui/base/baseclasses.py", line 306, in dispatch
dispatch(c, lx - c.x, ly - c.y) # TODO: not recursive
File "/home/zhyk/Downloads/thb/src/client/ui/base/baseclasses.py", line 308, in dispatch
c.dispatch_event(_type, lx - c.x, ly - c.y, *args)
File "/usr/lib/pymodules/python2.7/pyglet/event.py", line 349, in dispatch_event
return getattr(self, event_type)(*args)
File "/home/zhyk/Downloads/thb/src/gamepack/thb/ui/game_controls.py", line 172, in on_mouse_click
self.toggle(c, 0.1)
File "/home/zhyk/Downloads/thb/src/gamepack/thb/ui/game_controls.py", line 167, in toggle
self.dispatch_event('on_selection_change')
File "/usr/lib/pymodules/python2.7/pyglet/event.py", line 340, in dispatch_event
if handler(*args):
File "/home/zhyk/Downloads/thb/src/gamepack/thb/ui/view.py", line 166, in on_selection_change
self.dispatch_event('on_selection_change')
File "/usr/lib/pymodules/python2.7/pyglet/event.py", line 340, in dispatch_event
if handler(*args):
File "/home/zhyk/Downloads/thb/src/gamepack/thb/ui/inputs.py", line 65, in dispatch_selection_change
self.on_selection_change()
File "/home/zhyk/Downloads/thb/src/gamepack/thb/ui/inputs.py", line 287, in on_selection_change
g.process_action(calc)
File "/home/zhyk/Downloads/thb/src/game/game_common.py", line 189, in process_action
if action.can_fire():
File "/home/zhyk/Downloads/thb/src/game/game_common.py", line 96, in can_fire
_self, rst = self.game_class.getgame().emit_event('action_can_fire', (self, self.is_valid()))
File "/home/zhyk/Downloads/thb/src/game/game_common.py", line 168, in emit_event
data = evt.handle(evt_type, data)
File "/home/zhyk/Downloads/thb/src/gamepack/thb/thb3v3.py", line 112, in handle
raise GameEnded
GameEnded
为什么GameEnded没有被捕获?
|
|