[pygtk] Change background of selected cell in a TreeView
Noam Yorav-Raphael
noamraph at gmail.com
Tue Jun 30 06:13:41 WST 2009
Thanks! However, the link you sent me explains how to change the
background of cells when they are not selected. At least on my system,
the cells have the same (ubuntu orange) background when selected. I'm
looking for a way to change that color.
2009/6/29 Alessandro Dentella <sandro at e-den.it>:
> 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
> *:-)
> _______________________________________________
> pygtk mailing list pygtk at daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://faq.pygtk.org/
>
More information about the pygtk
mailing list