I was doing a small experiment with Python in my new win8 install and found the following issue:
Code:
import pygame, sys
screen = pygame.display.set_mode([1280,960])
myball=pygame.image.load("Globe.png")
screen.blit(myball, [576, 416])
pygame.display.flip()
while 1:
for event in pygame.event.get():
if event.type == pygame.QUIT:
sys.exit
However when I hit the ‘X’ button on the pygame window nothing happens. Is this just a win8 issue or not?
The general practice is to also call pygame.quit() when looking to exit the program. See below:
EDIT – also this is probably not a complete copy/paste of your code, but if your code literally just says sys.exit without the () it is not a function call 🙂