Hi, thanks for reporting the bug... it shouldn't hang things.
Note, that it's generally better to let your program end naturally, rather than calling sys.exit. For example, you can do it the way mentioned below... import pygame from pygame.locals import * going = True screen = pygame.display.set_mode((320,200)) while going: events = pygame.event.get() for e in events: if e.type in [QUIT]: going = False pygame.display.flip() cheers, On Tue, Apr 28, 2009 at 4:04 PM, Thadeus Burgess <thade...@thadeusb.com>wrote: > Yes, using just sys.exit() hangs the game up. > > However, on other python programs (not using pygame) using sys.exit() does > not hang the application up, so it is something to do with pygame. > > -Thadeus > > http://thadeusb.com > > > H. L. Mencken<http://www.brainyquote.com/quotes/authors/h/h_l_mencken.html> - > "It is even harder for the average ape to believe that he has descended > from man." > > On Tue, Apr 28, 2009 at 12:59 AM, Brian Song <unlucky...@gmail.com> wrote: > >> Have you tried >> >> if event.type == pygame.QUIT: >> sys.exit() >> >> On Tue, Apr 28, 2009 at 1:22 AM, Thadeus Burgess >> <thade...@thadeusb.com>wrote: >> >>> Is there any reason pygame.quit() hangs the application up? >>> >>> I am running python 2.6 on Ubuntu. >>> >>> It works on python 2.6 in windows. >>> >>> What, if any information could I provide to help track down the culprite? >>> >>> -Thadeus >>> >>> http://thadeusb.com >>> >>> >>> >> >