Hi

I was using the font.Text, and switched to text.Label, but I noticed
one problem. When the text is not multiline, the text correctly
centers, but the multiline text doesn't. The halign='center' property
is still useful to center the content (even if left justified) on the
screen when text is placed with x, y in the middle of the screen and
width is smaller than window width.

Another quirk about the Label instantiation is that you can't set
multiline=True when the label is created because the __init__ method
doesn't provide a width argument and it throws an error without it. So
I have to create the Label, then set the witdth and then the multiline
attribute is set to True. The resulting multiline text area is
centered on the screen but it is left justified.

Is there a way to change the justification of a multiline Label?

Thanks
Thomas
--~--~---------~--~----~------------~-------~--~----~
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