[pygtk] Change background of selected cell in a TreeView
Alessandro Dentella
sandro at e-den.it
Tue Jun 30 01:33:24 WST 2009
On Mon, Jun 29, 2009 at 08:15:19PM +0300, Noam Yorav-Raphael wrote:
> Hello,
>
> TreeViews usually highlight the background of the selected cell. I
> would like to change that color to white (the background of unselected
> cells), so that a border would be drawn around the cell but its
> background won't change.
>
> I tried using treeview.modify_bg(gtk.STATE_SELECTED,
> gdk.color_parse('white')), but it had no effect.
>
> Do you have any idea how to do it?
I think this explains what you need:
http://faq.pygtk.org/index.py?req=show&file=faq13.031.htp
It works for me.
sandro
*:-)
More information about the pygtk
mailing list