Source

pygamegsoc12 / alchemymadness / main.py

Full commit

import pygame
from pygame.locals import *



def main():
    """ your app starts here
    """

    pygame.init()
    screen = pygame.display.set_mode((640, 480))
    going = True

    screen.fill((255,0,0))
    pygame.display.flip()

    while going:
        events = pygame.event.get()
        for e in events:
            if e.type == QUIT or e.type == KEYDOWN and e.key == K_ESCAPE:
                going = False

        rects = []
        pygame.display.update(rects)


    pygame.quit()