Can anyone tell me why my app quits with:
pygame error: display Surface quit.
Replace if event.type == pygame.quit(): by if event.type == pygame.QUIT:
if event.type == pygame.quit():
if event.type == pygame.QUIT: