C.2. Methods

gtklisttype = gtklist.get_type()

Returns the "GtkList" type identifier.
 
gtklist = GtkList()

Create a new gtklist widget.
 
gtklist.insert_items(items, position)

Insert the list of items into the gtklist, starting at position. items is a  list of GtkListItems.
 
gtklist.append_items(items)

Insert list items just like insert_items() at the end of the gtklist.
 
gtklist.prepend_items(items)

Insert list items just like insert_items() at the very beginning of the gtklist.
 
gtklist.remove_items(items)

Remove list items from the gtklist. items is a list of GtkListItems to remove.
 
gtklist.clear_items(start, end)

Remove and destroy list items from the gtklist. A widget is affected if its current position within the list is in the range specified by start and end.
 
gtklist.select_item(position)

Invoke the select_child signal for a list item specified through its current position within the list.
 
gtklist.unselect_item(position)

Invoke the unselect_child signal for a list item specified through its current position within the list.
 
gtklist.select_child(child)

Invoke the select_child signal for the specified child.
 
gtklist.unselect_child(child)

Invoke the unselect_child signal for the specified child.
 
position = gtklist.child_position(child)

Return the position of child within the list. "-1" is returned on failure.
 
gtklist.set_selection_mode(mode)

Set the selection mode mode which can be of SELECTION_SINGLE, SELECTION_BROWSE, SELECTION_MULTIPLE or SELECTION_EXTENDED.