Part of kiwi.ui.views View In Hierarchy
Known subclasses: kiwi.ui.delegates.GladeSlaveDelegate, kiwi.ui.delegates.SlaveDelegate, kiwi.ui.views.BaseView
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.
Method | __init__ | Creates a new SlaveView. Sets up self.toplevel and self.widgets |
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 |
Parameters | parent |
Looks through widgets specified (if no widgets are specified, look through all widgets attached to the view and sets focus to the widget that is rendered in the position closest to the view window's top and left
A real hack; returns the widget that is most to the left and top of the window.
.-----------------------. 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.
Connect the same handler to the specified signal for a number of widgets.
This method return a Proxy object that you may want to use to force updates or setting new models. Keep a reference to it since there is no way to get that proxy later on. You have been warned (tm)