diff options
author | Chris Ball <cjb@pullcord.laptop.org> | 2007-12-08 22:36:34 (GMT) |
---|---|---|
committer | Chris Ball <cjb@pullcord.laptop.org> | 2007-12-08 22:36:34 (GMT) |
commit | 0c636d0433aa7f26640f4e9923343ffe4dba1256 (patch) | |
tree | 1f3a415d3fc55c7bb7cce157c1aa9ef143959c64 /data/graphics/bounce | |
parent | a692bb65183234a97aba9a572632c8096302ec5b (diff) |
Allow any key to quit pygame apps.
Diffstat (limited to 'data/graphics/bounce')
-rw-r--r-- | data/graphics/bounce | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/data/graphics/bounce b/data/graphics/bounce index 94e5c8b..02bc34f 100644 --- a/data/graphics/bounce +++ b/data/graphics/bounce @@ -1,8 +1,4 @@ # bounce: move some text around the screen -# use the escape key to exit -# -# on the XO, the escape key is the top lefthand key, -# circle with an x in it. import sys,pygame from pygame.locals import * @@ -55,8 +51,7 @@ while 1: sys.exit() elif event.type == KEYDOWN: - if event.key == K_ESCAPE: - sys.exit() + sys.exit() screen.fill((250,250,250)) |