Hi John,

Thanks for your answer. I fiddled and fiddled and finally figured out
that I could limit the width of the troublesome columns; then the text
in those columns started to show up and I could see that the newlines
indeed do work.

Now I have problems controlling vertical alignment; also I wonder if
it's possible to get the cell-rendered to wrap text when a line is too
long to fit in the fixed width of a cell?

My problem with vertical alignment is that when 1 field is multi-line
and the others are not, the text of those other cells is centered in the
middle (vertically). I would like it to be at the top of the cell.
How would I achieve that? I've poured through the documentation without
hitting upon and packing option for TreeViewColumns or other option that
would help me achieve that.

Cheers,

--Tim


-----Original Message-----
From: John Finlay [mailto:[EMAIL PROTECTED] 
Sent: woensdag 21 december 2005 17:29
To: Leeuw van der, Tim
Cc: [email protected]
Subject: Re: [pygtk] How to display multi-line text in TreeView
CellRenderer?

[...]

If the text has embedded newlines it should be displayed in multiple 
lines in a Cell RendererText.

John


[...]
John, Indeed it works naturally as it should but since some cells
contain very long lines, the column got really really wide and somehow
then it refused to display any text at all in that column... And all
columns seemed the same hight too, even for rows that I thought should
have multiple lines... So it seems those long lines messed up a number
of things.

Thanks for the assistance!

_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to