[pygtk] Line-wrap with TreeView / CellRendererText?

Leeuw van der, Tim tim.leeuwvander at nl.unisys.com
Fri Jan 6 23:07:09 WST 2006


Hi,

I have a TreeView to display lines of text. Now some of the lines of
text are too long to fit in the column (I had to set a fixed limit on
column width to get this to display at all).
However for those lines longer than the screen is wide, I'd like to have
the text auto-wrap so that the row becomes taller.

(If a line contains newlines there's no problem displaying multiple
lines but I want some sort of line-wrap/word-wrap enabled...)

Is there a way to do that? And if so, how?

I can't find it in the properties/attributes that I can set on the
CellRenderer(Text); I tried for instance the property
"single-paragraph-mode" but that doesn't make any difference at all.


Cheers,

--Tim



More information about the pygtk mailing list