known subclasses: kiwi.ui.views.BaseView, kiwi.ui.delegates.SlaveDelegate, kiwi.ui.delegates.GladeSlaveDelegate
Base class for all View classes. Defines the essential class attributes (controller, toplevel, widgets) and handles initialization of toplevel and widgets. Once AbstractView.__init__() has been called, you can be sure self.toplevel and self.widgets are sane and processed.
When a controller is associated with a View (the view should be passed in to its constructor) it will try and call a hook in the View called _attach_callbacks. See AbstractGladeView for an example of this method.Function | __init__ | Creates a new SlaveView. Sets up self.toplevel and self.widgets
|
Function | _get_notebooks | Undocumented |
Function | _check_reserved | Undocumented |
Function | _get_toplevel | Undocumented |
Function | get_glade_adaptor | Special init code that subclasses may want to override.
|
Function | on_attach | Hook function called when attach_slave is performed on slave views.
|
Function | on_startup | This is a virtual method that can be customized by classes that
|
Function | get_toplevel | Returns the toplevel widget in the view
|
Function | get_widget | Retrieves the named widget from the View
|
Function | set_controller | Sets the view's controller, checking to see if one has already
|
Function | show_and_loop | Runs show() and runs the GTK+ event loop. If the parent
|
Function | show | Shows the toplevel widget
|
Function | show_all | Shows all widgets attached to the toplevel widget
|
Function | focus_toplevel | Focuses the toplevel widget in the view
|
Function | focus_topmost | Looks through widgets specified (if no widgets are specified,
|
Function | get_topmost_widget | A real hack; returns the widget that is most to the left and
|
Function | _attach_callbacks | Undocumented |
Function | attach_slave | Attaches a slaveview to the current view, substituting the
|
Function | get_sizegroups | Get a list of sizegroups for the current view.
|
Function | _merge_sizegroup | Undocumented |
Function | detach_slave | Detatch a slave called name from view
|
Function | _attach_groups | Undocumented |
Function | get_slave | Undocumented |
Function | connect_multiple | Connect the same handler to the specified signal for a number of
|
Function | disconnect_autoconnected | Disconnect handlers previously connected with
|
Function | handler_block | Undocumented |
Function | handler_unblock | Undocumented |
Function | add_proxy | Add a proxy to this view that automatically update a model when
|
Function | _on_child__validation_changed | Undocumented |
Function | _on_notebook_slave__validation_changed | Undocumented |
Function | check_and_notify_validity | Undocumented |
Function | force_validation | Undocumented |
Function | register_validate_function | The signature of the validate function is:
|
.-----------------------. the widget that is indicated in the diagram |window/view (self.view)| as placeholder will be substituted for the | .----------------. | slaveview's toplevel. | | eventbox (name)| | .-----------------. | |.--------------.| |slaveview (slave)| | || placeholder <----. |.---------------.| | |'--------------'| \___ toplevel || | '----------------' | ''---------------'| '-----------------------' '-----------------'the original way of attachment (naming the *child* widget instead of the eventbox) is still supported for compatibility reasons but will print a warning.
The signature of the validate function is:
def function(is_valid):
or, if it is a method:
def function(self, is_valid):
where the 'is_valid' parameter is True if all the widgets have valid data or False otherwise.