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

[pygame] [BUG] pygame-ctypes -- some palette issues...



Hey,

It appears that setting the palette makes pygame-ctypes mad:

  File "wireworld.py", line 25, in init
    pygame.display.set_palette([(0x00,0x00,0x00),(0x00,0x00,0xaa),(0x55,0xff,0xff),(0x55,0x55,0xff)])
  File "/usr/lib/python2.4/site-packages/pygame/display.py", line 700, in set_palette
    colors = [SDL_Color(r, g, b) for r, g, b in palette[:length]]
NameError: global name 'length' is not defined

Phil


Do you Yahoo!?
Get on board. You're invited to try the new Yahoo! Mail Beta.