[pygtk] Re: TreeView - Making whole row colored
Jacek Wolszczak
shutdownrunner at o2.pl
Thu Jan 31 20:10:11 WST 2008
Stephen George pisze:
> Hi,
>
> I am trying to get a treeview (with liststore model) to display rows in
> different colors based on content in the list.
>
<cut>
Hi
Just try changing the order of foreground and foreground-set and it'll work.
column.add_attribute(mycell, 'foreground-set', COLUMN_MODIFIED)
column.add_attribute(mycell, 'foreground', COLUMN_FOREGROUND)
It seems that order of adding attributes does matter and first
foreground-set should be checked if it's True before foreground colour
is changed.
More information about the pygtk
mailing list