On Fri, 1 Dec 2000, Al1 wrote:
> Hello, i'm beginning with python and gtk and i've got problems using
> GtkList
> especially when retriving datas.
> Where can i found examples or tutorial on this ?
> the examples on the pygtk package add an remove items, but there's
> nothing about how to retrive, for example,
> the label of the selected GtkListItem.
> thanks.
A GtkList is a container, so you can get the list of children in it with
the children() function.
Now the GtkListItem's are also containers (usually just holding a GtkLabel
widget). So you can get the label with list_item.children()[0]. You can
then get the text from the GtkLabel with the get() method.
James.
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk