Part of kiwi.ui.listdialog View In Hierarchy
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.
Instance Variable | add_button | add button (type: gtk.Button ) |
Instance Variable | remove_button | remove button (type: gtk.Button ) |
Instance Variable | edit_button | edit button (type: gtk.Button ) |
Method | __init__ | No summary |
Method | add_item | Appends an item to the list @param item: item to append |
Method | add_items | Appends a list of items to the list @param items: items to add @type items: a sequence of items |
Method | remove_item | Removes an item from the list @param item: item to remove |
Method | update_item | Updates an item in the list. You should call this if you change the object @param item: item to update |
Method | default_remove | Asks the user confirmation for removal of an item. @param item: a description of the item that will be removed @returns: True if the user confirm the removal, False otherwise |
Method | set_list_type | Sets the kind of list type. @param list_type: |
Method | clear | Removes all the items in the list |
Method | _create_ui | Undocumented |
Method | _add_buttons_to_box | Undocumented |
Method | _pack_vbox | Undocumented |
Method | _set_child_packing | Undocumented |
Method | _add_item | Undocumented |
Method | _remove_item | Undocumented |
Method | _edit_item | Undocumented |
Method | _on_list__selection_changed | Undocumented |
Method | _on_list__row_activated | Undocumented |
Method | _on_add_button__clicked | Undocumented |
Method | _on_remove_button__clicked | Undocumented |
Method | _on_edit_button__clicked | Undocumented |
Create a new ListContainer object.
Parameters | columns | columns for the kiwi.ui.objectlist.ObjectList (type: a list of kiwi.ui.objectlist.Columns ) |
orientation | the position where the buttons will be placed: at the right (vertically) or at the bottom (horizontally) of the list. Defaults to the right of the list. |
Appends a list of items to the list
Parameters | items | items to add (type: a sequence of items) |
Updates an item in the list. You should call this if you change the object
Parameters | item | item to update |