kiwi.ui.listdialog.ListDialog(gtk.Dialog, ListSlave) class documentationkiwi.ui.listdialog
(View In Hierarchy)
A ListDialog implements a L{ListContainer} in a L{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()
| Method | __init__ | The keyactions parameter is sent to L{kiwi.controllers.BaseController}, the rest are sent to L{kiwi.ui.views.SlaveView} |
Inherited from BaseController (via ListSlave, SlaveDelegate):
| Method | on_key_press | The keypress handler, which dispatches keypresses to the functions mapped to in self.keyactions |
| Method | get_parent | parent: the correspondent parent for the controller |
| Method | set_parent | parent: the correspondent parent for the controller |
| Method | get_view | view: the correspondent view for the controller |
| Method | set_view | view: the correspondent view for the controller |
| Method | set_keyactions | Sets the keyactions mapping. See the constructor documentation for a description of it. |
| Method | update_keyactions | XXX |
| Method | _get_all_methods | Undocumented |
Inherited from BaseController (via ListSlave, SlaveDelegate):
| Method | on_key_press | The keypress handler, which dispatches keypresses to the functions mapped to in self.keyactions |
| Method | get_parent | parent: the correspondent parent for the controller |
| Method | set_parent | parent: the correspondent parent for the controller |
| Method | get_view | view: the correspondent view for the controller |
| Method | set_view | view: the correspondent view for the controller |
| Method | set_keyactions | Sets the keyactions mapping. See the constructor documentation for a description of it. |
| Method | update_keyactions | XXX |
| Method | _get_all_methods | Undocumented |
Inherited from BaseController (via ListSlave, SlaveDelegate):
| Method | on_key_press | The keypress handler, which dispatches keypresses to the functions mapped to in self.keyactions |
| Method | get_parent | parent: the correspondent parent for the controller |
| Method | set_parent | parent: the correspondent parent for the controller |
| Method | get_view | view: the correspondent view for the controller |
| Method | set_view | view: the correspondent view for the controller |
| Method | set_keyactions | Sets the keyactions mapping. See the constructor documentation for a description of it. |
| Method | update_keyactions | XXX |
| Method | _get_all_methods | Undocumented |
The keyactions parameter is sent to L{kiwi.controllers.BaseController},
the rest are sent to L{kiwi.ui.views.SlaveView}