Cells in a TreeView need to be of a gtk.CellRenderer type, not a generic widget. If you want to put a progress bar in a TreeView, you should use the gtk.CellRendererProgress.

http://pygtk.org/pygtk2reference/class-gtkcellrendererprogress.html

Don

Arie Timmerman wrote:
John Ehresman wrote:

Arie Timmerman wrote:

I'm trying to add a VBox to my TreeView but it doesnt work. My current code:



You don't add widgets to the tree store, rather you add data. Please see the tutorial at http://pygtk.org/pygtk2tutorial/ch-TreeViewWidget.html


>

So this isn't possible?



No, it isn't possible because the ListStore doesn't contain widgets and a VBox is a widget. I encourage you to learn how the TreeView and related classes work because they're not simple.

John

But how can i make something like this: http://rufus.sourceforge.net/scrn/images/main.jpg

It looks like a ListStore with ProgressBars.
_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/


_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to