[pygtk] expander column
asterix at lagaule.org
asterix at lagaule.org
Fri Jan 27 23:45:04 WST 2006
On Fri, Jan 27, 2006 at 04:06:32PM +0100, Danny Milosavljevic wrote:
> Hi,
>
> Am Freitag, den 27.01.2006, 07:40 +0100 schrieb Le Boulanger Yann:
> > Le Boulanger Yann wrote:
> > I want to use my own icons in it.
>
> Please honor the Gtk Theme.
>
no, I don't want a unique icon, but different on each row. So the only
way is to use a CellRendererPixbuf to show them.
> > 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?
>
>
> pack both cell renderers into one tree view column.
>
it's what I did, but the cellrenderer have same width on all rows. so I have
the behaviour I said above.
--
Yann
More information about the pygtk
mailing list