When my program did not work for him, I just sent the example from the
docs, which did not work either, so you can assume that code for loading
and drawing.
import pyglet
>
> window = pyglet.window.Window()
>
> img = pyglet.image.load('img.png')
> sprite = pyglet.sprite.Sprite(img, x=0, y=0)
>
> @window.event
> def on_draw():
> window.clear()
> sprite.draw()
>
> pyglet.app.run()
>
>
--
You received this message because you are subscribed to the Google Groups
"pyglet-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pyglet-users.
For more options, visit https://groups.google.com/groups/opt_out.