[pygtk] Dynamically resize text to fit a fixed sized label

Darwin Bautista djclue917 at gmail.com
Tue Mar 11 16:18:39 WST 2008


Hi all,

I'm planning to dynamically resize the text to fit a fixed sized label
when it overflows.
How do I determine if a certain text (variable length) will overflow a
fixed sized label?
Also, is there a way of estimating the required font size for the text
to fit inside the label?

Thanks in advance.

-- 
~dmb


More information about the pygtk mailing list