A ListDialog implements a ListContainer in a gtk.Dialog with a close button.
It's a simple Base class which needs to be subclassed to provide interesting functionality.
Example: >>> class MyListDialog(ListDialog): ... ... columns = [Column('name')] ... list_type = ListType.UNEDITABLE ... ... def populate(self): ... return [Settable(name='test')] ... ... def add_item(self): ... return Settable(name="added")>>> dialog = MyListDialog() >>> dialog.run()
Function | __init__ | Undocumented |
Function | _on_listcontainer__add_item | Undocumented |
Function | _on_listcontainer__remove_item | Undocumented |
Function | _on_listcontainer__edit_item | Undocumented |
Function | _on_listcontainer__selection_changed | Undocumented |
Function | set_list_type | Set list type.
|
Function | add_list_item | Add item to list.
|
Function | add_list_items | Add items to list.
|
Function | remove_list_item | Remove item from list.
|
Function | update_list_item | Update item in list.
|
Function | default_remove | Undocumented |
Function | add_item | This must be implemented in a subclass if you want to be able
|
Function | remove_item | A subclass can implement this to get a notification after
|
Function | edit_item | A subclass must implement this if you want to support editing
|
Function | selection_changed | This will be called when the selection changes in the ListDialog
|
Function | populate | This will be called once after the user interface construction is
done.
|
This must be implemented in a subclass if you want to be able to add items.
It should return the model you want to add to the list or None if you don't want anything to be added, eg the user cancelled creation of the model