Re: Colors in a tree view



On Mon, Aug 29, 2005 at 10:56:11AM +0200, Arne Caspari wrote:

I want to change the color of the text in single entries of a tree view. 
Does anybody know how to do this?

When a TreeViewColumn you can specify a column of your model to be
used to set the "foreground" property of the CellRenderer, or -- the method
I prefer -- specify a data func for the TreeViewColumn and directly set the
"foreground" property of the renderer in the data func.

The pygtk tutorial does a great job of covering all this.  Is there a
similar doc for C somewhere?

http://pygtk.org/pygtk2tutorial/ch-TreeViewWidget.html

Dave Cook



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]