There is two properties of CellRendererText: "wrap-mode" and
"wrap-width", but it doesn't work while editing.
for example:
_______________________________________________
cell = gtk.CellRendererText()
cell.set_property('wrap-mode', gtk.WRAP_WORD)
cell.set_property('editable', True)
col = gtk.TreeViewColumn('Description', cell, text=0)
col.set_resizable(True)
treeview.append_column(col)
treeview.connect('expose-event', treeviewExpose, cell, col)
def treeviewExpose(widget, event, cell, col):
cell.set_property('wrap-width', col.get_width())
____________________________________
_______________________________________________
pygtk mailing list [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/