k.u.l.ListDialog(gtk.Dialog, ListSlave) : class documentation

Part of kiwi.ui.listdialog View In Hierarchy

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()
Method __init__ The keyactions parameter is sent to kiwi.controllers.BaseController,

Inherited from ListSlave:

Method set_list_type Set list type.
Method add_list_item Add item to list.
Method add_list_items Add items to list.
Method remove_list_item Remove item from list.
Method update_list_item Update item in list.
Method refresh Updates all the items in the list.
Method add_item This must be implemented in a subclass if you want to be able
Method remove_item A subclass can implement this to get a notification after
Method edit_item A subclass must implement this if you want to support editing
Method selection_changed This will be called when the selection changes in the ListDialog
Method populate This will be called once after the user interface construction is done.
Method _on_listcontainer__add_item Undocumented
Method _on_listcontainer__remove_item Undocumented
Method _on_listcontainer__edit_item Undocumented
Method _on_listcontainer__selection_changed Undocumented

Inherited from SlaveView (via ListSlave, SlaveDelegate):

Method get_glade_adaptor Special init code that subclasses may want to override.
Method on_attach Hook function called when attach_slave is performed on slave views.
Method on_startup This is a virtual method that can be customized by classes that
Method get_toplevel Returns the toplevel widget in the view
Method get_widget Retrieves the named widget from the View
Method set_controller Sets the view's controller, checking to see if one has already
Method show_and_loop Runs show() and runs the GTK+ event loop. If the parent
Method show Shows the toplevel widget
Method show_all Shows all widgets attached to the toplevel widget
Method focus_toplevel Focuses the toplevel widget in the view
Method focus_topmost Looks through widgets specified (if no widgets are specified,
Method get_topmost_widget A real hack; returns the widget that is most to the left and
Method attach_slave Attaches a slaveview to the current view, substituting the
Method get_sizegroups Get a list of sizegroups for the current view.
Method detach_slave Detatch a slave called name from view
Method get_slave Undocumented
Method connect_multiple Connect the same handler to the specified signal for a number of
Method disconnect_autoconnected Disconnect handlers previously connected with
Method handler_block Undocumented
Method handler_unblock Undocumented
Method add_proxy Add a proxy to this view that automatically update a model when
Method check_and_notify_validity Undocumented
Method force_validation Undocumented
Method register_validate_function The signature of the validate function is:
Method _get_notebooks Undocumented
Method _check_reserved Undocumented
Method _get_toplevel Undocumented
Method _attach_callbacks Undocumented
Method _merge_sizegroup Undocumented
Method _attach_groups Undocumented
Method _on_child__validation_changed Undocumented
Method _on_notebook_slave__validation_changed Undocumented

Inherited from BaseController (via ListSlave, SlaveDelegate):

Method on_key_press The keypress handler, which dispatches keypresses to the
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
Method update_keyactions XXX
Method _get_all_methods Undocumented
def __init__(self, columns=None):
The keyactions parameter is sent to kiwi.controllers.BaseController, the rest are sent to kiwi.ui.views.SlaveView
API Documentation for Kiwi, generated by pydoctor at 2010-05-20 02:10:57.