[pygtk] Trouble modifying a GtkTreeView
Tony Nelson
tonynelson at georgeanelson.com
Tue Dec 13 01:30:20 WST 2005
At 7:53 AM -0500 12/12/05, Gary Jaffe wrote:
>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.
I always have to futz around quite a bit to change the color of something.
In this case, use view.modify_base() instead.
____________________________________________________________________
TonyN.:' <mailto:tonynelson at georgeanelson.com>
' <http://www.georgeanelson.com/>
More information about the pygtk
mailing list