Label.content_height?

On May 24, 1:55 am, mclovin <[email protected]> wrote:
> Hello,
>
> I wanted to create a box width a fixed width, but have the height
> change depending on the text. So the height of the box would expand
> down depending on the text so the box would fully enclose the text.
>
> I got everything down, but I do not know how to find out how tall a
> label will be. Is there a way to find this out? I would normally just
> take the font height and the number of lines, but in this case I have
> word wrapping using the built in label's abilities so I cant easily
> find it out.
>
> Is there an easy way to find out how "tall" a label which has word
> wrapping enabled w/ a fixed width?
>
> Thank you
--~--~---------~--~----~------------~-------~--~----~
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