On Wed, Jun 4, 2008 at 2:49 AM, Danny Tamez <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> New user and first post.  I'm trying to center several lines of text in a 
> label
> both vertically and horizontally.  I know I can accomplish this by using one
> label per line and then taking into account the height and width of each line
> along with the dimensions of the screen.  However, I am trying to get this to
> work with only one label and using multilines.  After setting the halign and
> valign properties the first line is centered but all the other lines are left
> aligned with that one regardless of their width.  Is there a better way?
>

The meaning of 'halign' and 'valign' is (was) somewhat misleading;
they have been renamed 'anchor_x' and 'anchor_y' in a recent SVN
revision.  To center text you need to set the 'align' paragraph style
to "center", or the 'halign' Label parameter (which is now an alias
for the 'align' style) to "center" in the most recent SVN revision .

If this is confusing, I'm not surprised ;-)  The next Beta release
should make this more clear.

Alex.

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