[pygtk] expander column

Le Boulanger Yann asterix at lagaule.org
Fri Jan 27 14:40:08 WST 2006


Le Boulanger Yann wrote:
> Hi all,
> 
> first little question, how can I access to style properties ? 
> treeview.get_property('expander-size') doesn't work. And as doc says 
> it's read only, I suppose I can't change those properties ?
> 
> In fact I'd like to create my own expander column, because indentation 
> is too big in the default one and I want to use my own icons in it. But 
> I'm unable to do some kind of indentation. In the default expander 
> column it seems the cellrenderer is not the same size on parent and 
> children rows. And I'm not able to reproduce this behaviour.
> 
> Does someone has an idea ?
> 
> Thanks in advance
> 

To be more clear, my treeview contains 2 cellrendererd: a 
CellRendererPixbuf and a CellRendererText. What I'd like to have is sth 
like that:

IMG  TEXT
   IMG  TEXT
     IMG  TEXT

but I'm only able to do that:

IMG      TEXT
   IMG    TEXT
     IMG  TEXT


Is there a way to do what I want ?
maybe create my own cellrenderer that will contain image and text is the 
only way?

-- 
Yann


More information about the pygtk mailing list