comparison gamelib/main.py @ 149:7f6b11a0d404

Exit quietly on keyboard interrupt.
author Simon Cross <hodgestar+bzr@gmail.com>
date Tue, 24 Aug 2010 23:30:43 +0200
parents 97322b78d1c1
children c6ea3b11514c
comparison
equal deleted inserted replaced
148:d6b293d46d23 149:7f6b11a0d404
50 else: 50 else:
51 # Ensure get_sound returns nothing, so everything else just works 51 # Ensure get_sound returns nothing, so everything else just works
52 disable_sound() 52 disable_sound()
53 display = pygame.display.set_mode(SCREEN, SWSURFACE) 53 display = pygame.display.set_mode(SCREEN, SWSURFACE)
54 shell = MainShell(display) 54 shell = MainShell(display)
55 shell.run() 55 try:
56 shell.run()
57 except KeyboardInterrupt:
58 pass
56 59