[pygtk] How to change CellRendererToggle's background color
Johan Dahlin
jdahlin at async.com.br
Tue Aug 15 22:22:10 WST 2006
Mauricio Tellez wrote:
[snip]
> myRender = gtk.CellRendererToggle ()
> myCol = gtk.TreeViewColumn('My title', my Render, active=v,
> activatable=w, background=z)
>
> pygtk complains that CellRendererToggle don't have a background
> property. So my first 2 columns are colored but the last 2 don't. How
> can I fix this?
Check out
http://www.pygtk.org/pygtk2reference/class-gtkcellrenderertext.html
The property section of that link explains which properties a
gtk.CellRendererText has and if you can modify them or not.
--
Johan Dahlin <jdahlin at async.com.br>
Async Open Source
More information about the pygtk
mailing list