1

pygame event not checked?

view story
linux-howto

http://ubuntuforums.org – when I run this code I can never get the if event == pygame.QUIT: to work Code: # -*- coding: utf-8 -*- import random, sys, codecs import pygame import test, py pygame.init() #pygame.mixer.init() #load sound c = pygame.mixer.Sound('sounds/corrent.wav') ic = pygame.mixer.Sound('sounds/incorrect.mp3') # load image bck_img = pygame.image.load('images/background.png') bck_rect = bck_img.get_rect() size = (width,height) = bck_img.get_size() screen = pygame.display.set_mode(size) pygame.display.set_caption('RTK') BLACK = (0, 0, 0) #fonts kanji_font = pygame.font.Font('Fonts/华文 (Hardware)