[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Tutorial... GUI



On 9/26/07, kschnee@xxxxxxxxxx <kschnee@xxxxxxxxxx> wrote:
> then at a
> Python console or in a program type:
> import python
> python.init()
> screen = pygame.display.set_mode((640,480)) ## Or another size

No, Python is already init-ed.  Do:

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

Otherwise, there will be an error on lines 2 and 3.

Ian