On Mon, Jul 7, 2008 at 6:00 PM, George Oliver <[EMAIL PROTECTED]> wrote:
>
> hi, using 1.1beta2, I try to run this (from /site-packages/pyglet/docs/
> doc/html/api/pyglet.sprite-module.html):
>
> '''The following complete example loads a "ball.png" image and creates
> a sprite for that image. The sprite is then drawn in the window's draw
> event handler:'''
>
> #!/usr/bin/env python
>
> import pyglet
>
> ball_image = pyglet.image.load('ball.png')
> ball = pyglet.sprite.Sprite(ball_image, x=50, y=50)
>
> window = pyglet.window.Window()
>
> @window.event
> def on_draw():
> ball.draw()
>
> pyglet.app.run()
>
>
> However I get this error:
>
>>C:\Python25\pythonw -u "pyglet.py"
There's your problem - you're executing a script called pyglet.py.
Rename to demo.py or anything else that won't cause a module naming
conflict.
--
\\\\\/\"/\\\\\\\\\\\
\\\\/ // //\/\\\\\\\
\\\/ \\// /\ \/\\\\
\\/ /\/ / /\/ /\ \\\
\/ / /\/ /\ /\\\ \\
/ /\\\ /\\\ \\\\\/\
\/\\\\\/\\\\\/\\\\\\
d.p.s
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---