Class k.u.l.ListContainer(gtk.HBox):

Part of kiwi.ui.listdialog
A ListContainer is an ObjectList with buttons to be able to modify the content of the list. Depending on the list_mode, @see set_list_mode you will have add, remove and edit buttons.

Signals

ivar add_buttonadd button
type add_buttongtk.Button
ivar remove_buttonremove button
type remove_buttongtk.Button
ivar edit_buttonedit button
type edit_buttongtk.Button
Function__init__
Create a new ListContainer object.
Function_create_uiUndocumented
Function_add_itemUndocumented
Function_remove_itemUndocumented
Function_edit_itemUndocumented
Functionadd_item
Appends an item to the list
Functionadd_items
Appends a list of items to the list
Functionremove_item
Removes an item from the list
Functionupdate_item
Updates an item in the list.
Functionset_list_type
Sets the kind of list type.
Function_on_list__selection_changedUndocumented
Function_on_list__row_activatedUndocumented
Function_on_add_button__clickedUndocumented
Function_on_remove_button__clickedUndocumented
Function_on_edit_button__clickedUndocumented
def __init__(self, columns):
Create a new ListContainer object.
def _create_ui(self, columns):
Undocumented
def _add_item(self):
Undocumented
def _remove_item(self, item):
Undocumented
def _edit_item(self, item):
Undocumented
def add_item(self, item):
Appends an item to the list
def add_items(self, items):
Appends a list of items to the list
def remove_item(self, item):
Removes an item from the list
def update_item(self, item):
Updates an item in the list. You should call this if you change the object
def set_list_type(self, list_type):
Sets the kind of list type.
def _on_list__selection_changed(self, list, selection):
Undocumented
def _on_list__row_activated(self, list, item):
Undocumented
def _on_add_button__clicked(self, button):
Undocumented
def _on_remove_button__clicked(self, button):
Undocumented
def _on_edit_button__clicked(self, button):
Undocumented