bif="bg.jpg"
mif="ball.png"
import pygame, sys
from pygame import *
pygame.init()
screen=pygame.display.set_mode((420,300),0,32)
background=pygame.image.load(bif).convert()
mouse_c=pygame.image.load(mif).convert_alpha()
while True:
for event in pygame.event.get():
if event.type == QUIT:
pygame.quit()
sys.exit()
screen.blit(background, (0,0))
Traceback (most recent call last):
File "C:/Documents and Settings//Desktop/Programming/PYGAME TEST/pygame.py", line 4, in <module>
import pygame, sys
File "C:/Documents and Settings//Desktop/Programming/PYGAME TEST\pygame.py", line 5, in <module>
from pygame.locals import *
ImportError: No module named locals
I've install Pygame; and everything else.