On Fri, Jun 27, 2008 at 3:13 PM, Timothy <[EMAIL PROTECTED]> wrote: > > Newbie question based on the pyglet.sprite module > > A: can't load the sprite module with "from pyglet import sprite" > > then using the catch all code found in the first example here: > http://pyglet.org/doc/1.1/api/pyglet.sprite-module.html > I get this error: > > Traceback (most recent call last): > File "C:\Wheels\bingo.py", line 9, in <module> > ball_image = pyglet.image.load('player.bmp') > AttributeError: 'module' object has no attribute 'image'
Looks like you have an incomplete install. This seems to be not uncommon when using setuptools (eggs). > > Any ideas? I've been trying to hack the blit function to scale images > for me for about a week now, this sprite module should save me a lot > of guff. Incidentally, pyglet 1.1's Texture.blit has width= and height= keyword arguments you can use for scaling. Alex. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pyglet-users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pyglet-users?hl=en -~----------~----~----~----~------~----~------~--~---
