[pygtk] Re: Changing a style property of TreeView

Jeffrey Barish jeff_barish at earthlink.net
Sat Mar 22 01:41:57 WST 2008


Aravind Vijayakumar wrote:

> Now that I do have the code in front of me, what I has done was:
> 
>  gtk.rc_reset_styles(self.main_window.get_settings())
> 
> You'd want to replace self.main_window with the appropriate widget.
> 
> Regards,
> Aravind

Nope.  The value of indent-expanders is still True.

I don't know what I'm talking about, but from what I'm reading in the
documentation it seems to me that rc_reset_styles is resetting the styles
of all widgets according to the Settings object for the screen.  I don't
see where I have changed the Settings object, so I would not expect
resetting styles according to an unchanged Settings object to do anything.

I tried putting the style definition in a file which I parse using
gtk.rc_parse early in the program startup.  Still nothing.
-- 
Jeffrey Barish



More information about the pygtk mailing list