Learning python/pyglet and playing with the script, I can't get the
"hello world" label to print on the screen. Can you tell me what is
wrong with it? Here is the link to the image (http://goo.gl/j7Rm9).
Thanks!
[code]import pyglet
window = pyglet.window.Window()
image = pyglet.image.load('kitty.gif')
label = pyglet.text.Label('hello world',
font_name = 'Times New Roman',
font_size = 36,
color = (0, 0, 0, 1),
x = window.width//2, y = window.height//2,
anchor_x = 'center', anchor_y = 'center')
@window.event
def on_draw():
window.clear()
image.blit(0, 0)
label.draw()
pyglet.app.run()[/code]
--
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.