[pygtk] VBox in ListStore
Don Allingham
dallingham at users.sourceforge.net
Thu Jan 19 02:30:44 WST 2006
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 pygtk at daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
>
More information about the pygtk
mailing list