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

Re: [pygame] Very beginner level question



Try catch some events. For example pygame.evnet.QUIT.

2009/2/6 Varsha Purohit <varsha.purohit@xxxxxxxxx>
Ok I got this part. But the screen is initializing and after that i get program not responding message. The screen becomes inactive and i have to kill the program.

thanks,
Varsha




On Fri, Feb 6, 2009 at 10:04 AM, Varsha Purohit <varsha.purohit@xxxxxxxxx> wrote:
Hello everyone,
     I just started programming again in pygame. I have downloaded python 2.4 and pygame msi for the same. I am writing a basic program of screen initialization

from pygame.locals import *

screen = pygame.display.set_mode((1024,768))

and i get an error message.
Traceback (most recent call last):
  File "C:/pygames/car.py", line 3, in -toplevel-
    screen = pygame.display.set_mode((1024,768))
NameError: name 'pygame' is not defined

What does this mean ??

thanks,
Varsha