[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] getting NameError
I'm using version 2.3. I'm trying to get this script to run:
import pygame
pygame.init()
pygame.display.init( (800,600), OPENGL | DOUBLEBUF | HWSURFACE)
But I'm getting this error:
Traceback (most recent call last):
File "F:\Python23\pygameTest.py", line 3, in -toplevel-
pygame.display.init( (800,600), OPENGL | DOUBLEBUF | HWSURFACE)
NameError: name 'OPENGL' is not defined
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online