[pygtk] gtk.label + wrapping

Gian Mario Tagliaretti gianmt at gnome.org
Sat Jan 31 20:59:17 WST 2009


On Fri, Jan 30, 2009 at 7:33 PM, Yann Leboulanger <asterix a lagaule.org> wrote:

Hi Yann,

> I have a gtk.Label, filled with a long text. I enabled wrap on this
> label, so that text is splitted into several lines.
>
> The problem is that when I increase window width, the wrapping is not
> re-computed.

I had the same problem some time ago, I've stolen some code from
libview and make it pure python, look at the WrapLabel class.
http://www.gnome.org/~gianmt/busybox.py

cheers
-- 
Gian Mario Tagliaretti
GNOME Foundation member
gianmt a gnome.org


More information about the pygtk mailing list