[pygtk] Changing a style property of TreeView

Jeffrey Barish jeff_barish at earthlink.net
Wed Mar 19 09:31:16 WST 2008


I would like to change the style property indent-expanders of a TreeView. 
Following the example of FAQ 4.18, I put the code:

rcstring = """
style "treeview-style" {
    GtkTreeView::indent_expanders = 0
}

class "GtkTreeView" style "treeview-style"
"""
gtk.rc_parse_string(rcstring)

at the top of the module.  I do not get an error message, but when I do

print treeview.style_get_property('indent-expanders')

at the point in the code where I create the treeview, the value is still
True.  I don't really understand the explanation in FAQ 4.18, so no doubt I
am doing something stupid.  Anyone know what?
-- 
Jeffrey Barish



More information about the pygtk mailing list