views:

65

answers:

1

Hi,

i'Ve got a sring that i wann paste into a column:

textrenderer = gtk.CellRendererText() column = gtk.TreeViewColumn('Text', textrenderer, text=COLUMN_TEXT) treeview.append_column(column)

but the text is too long for the column and so the window gets automaticly resized, but i want to get the text wrapped automaticly like with this option in a textview widget:

column.set_wrap_mode(gtk.WRAP_WORD)

but treeview don't know this option. Is there a way to get text wrapping for treeview?

thanks for your help

+1  A: 

Here is an example on how to do that: http://www.islascruz.org/html/index.php/blog/show/Wrap-text-in-a-TreeView-column.html

DoR