[pygtk] Trouble modifying a GtkTreeView

Gary Jaffe gfj555 at gmail.com
Mon Dec 12 20:53:36 WST 2005


Hi --

I have a GtkTreeView that is working fine, but I would like to change 2 
things.

1) Change the background color in the text area and

2) Reduce the amount of vertical space between the text lines.

To change the background color, I tried

viewBgCol = gtk.gdk.color_parse("#808080")
view.modify_bg(gtk.STATE_NORMAL, viewBgCol)

but this did not change the color.  For the reduction of space, I've 
read through the pango docs, but was not able to figure out how to do 
this.  Any help would be appreciated.

I'm running gtk version 2.8.6 and pygtk version 2.8.1.

Thanks,
Gary


More information about the pygtk mailing list