ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> pygame-users
pygame-users
Re: [pygame] [BUG] pygame-ctypes -- some palette issues...
by Peter Shinners other posts by this author
Aug 22 2006 8:52AM messages near this date
[pygame] [BUG] pygame-ctypes -- some palette issues... | [pygame] [BUG] pygame-ctypes - default font missing
On Mon, 2006-08-21 at 06:58 -0700, Phil Hassey wrote:
>  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

This looks like a coding error?
Thread:
Phil Hassey
Peter Shinners

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved