globalrev schrieb:
if pygame.key.get_pressed[K_a]:
            print "Muppet"

K_a is not defined.


but yes it is. why do i get this error?

No it isn't - otherwise you wouldn't get this error, wouldn't you?

What IS defined is

pygame.K_a

Or if you do

from pygame import K_a

then K_a is defined as well.

Diez
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to