Hello everyone!
Part of my pygtk application should have a scrollable area that contains
a list.
But instead of plain text I would like to have several widgets nested
per row.
(e.g. a vbox that contains a text field and a button)
Is that possible at all?
From what I found out so far I have to create a
gtk.ListStore(gobject.TYPE_PYOBJECT) and add one column to it. Here I
can append widgets like my vbox with stuff...
Then this column needs a custom CellRenderer which I obtain by
inheriting from gtk.CustomCellRenderer.
There I have to implement the functions that are used to display a cell
which in my case is a vbox with a textfield and a button.
So it boils down to having a custom on_render() method.
And this is the point where I am lost.
How can I display/draw widgets from the rows of my ListStore in a
TreeView using my ListStore? What does this magic on_render() method
look like?
I have only found examples changing background, drawing shapes and
displaying text.
Thanks a lot.
___________________________________________________________
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de
_______________________________________________
pygtk mailing list [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/