I'm not sure, but if you pass 1 as alpha, it could be too transient to see.
Try passing 255 instead.

2011/8/18 now0pen <[email protected]>

> 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.
>
>

-- 
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.

Reply via email to