Your fix looks good to me.  I added your comments to issue 460 in the
tracker and then applied your changes.  I went back and looked at
previous revisions and it seems that Label used to have an 'halign'
and 'valign' parameter for setting the anchor position of the label.
But these parameters were renamed to 'anchor_x' and 'anchor_y'.  The
'halign' parameter was re-added later to control the justification of
the text.

As part of the fix, I renamed the 'halign' parameter to just 'align'
since this agrees with the corresponding document style and seems less
confusing to me.

So now you would create a centered multiline label with

label = pyglet.text.Label("blah blah blah blah blah", multiline=True,
align="center", width=100)

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