[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] [BUG] pygame-ctypes -- some palette issues...
- To: pygame <pygame-users@xxxxxxxx>
- Subject: [pygame] [BUG] pygame-ctypes -- some palette issues...
- From: Phil Hassey <philhassey@xxxxxxxxx>
- Date: Mon, 21 Aug 2006 06:58:55 -0700 (PDT)
- Delivered-to: archiver@seul.org
- Delivered-to: pygame-users-outgoing@seul.org
- Delivered-to: pygame-users@seul.org
- Delivery-date: Mon, 21 Aug 2006 09:59:03 -0400
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=QgJu/QYXCn8pjqOtIL/jMavdHU659sG6YDqcQqPKjF483/B7KcD2sedhzActqjj9Ru8Aph2AESggyaCSzfm42yMJx8o880UlcjsjWA7PLE9s2YRt5EH8bXpXUKb/yju2nJICCjlKhFOkMJ9TXfGmjRoW0jMwmB7DY7FBBRUO+ik= ;
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
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.