# Class k.u.v.BaseView(SlaveView):

Part of kiwi.ui.views View In Hierarchy

Known subclasses: kiwi.ui.delegates.Delegate, kiwi.ui.delegates.GladeDelegate

A view with a toplevel window.

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 | _attach_callbacks | Undocumented
Method | _setup_keypress_handler | Undocumented
Method | set_transient_for | Makes the view a transient for another view; this is commonly done
Method | set_title | Sets the view's window title
Method | get_focus_widget | Returns the currently focused widget in the window
Method | check_focus | Tests the focus in the window and prints a warning if no
Method | hide | Hide the view's window
Method | show_all | Shows all widgets attached to the toplevel widget
Method | show | Show the view's window.
Method | quit_if_last | Undocumented
Method | hide_and_quit | Hides the current window and breaks the GTK+ event loop if this

Inherited from SlaveView:

Method | _get_notebooks | Undocumented
Method | _check_reserved | Undocumented
Method | _get_toplevel | Undocumented
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 | 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 | _merge_sizegroup | Undocumented
Method | detach_slave | Detatch a slave called name from view
Method | _attach_groups | Undocumented
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 | _on_child__validation_changed | Undocumented
Method | _on_notebook_slave__validation_changed | Undocumented
Method | check_and_notify_validity | Undocumented
Method | force_validation | Undocumented
Method | register_validate_function | The signature of the validate function is:

def __init__(self, toplevel=None, widgets=None, gladefile=None, toplevel_name=None, domain=None, delete_handler=None):
overrides kiwi.ui.views.SlaveView.__init__
overridden in kiwi.ui.delegates.Delegate, kiwi.ui.delegates.GladeDelegate
Creates a new SlaveView. Sets up self.toplevel and self.widgets and checks for reserved names.

def get_glade_adaptor(self):
overrides kiwi.ui.views.SlaveView.get_glade_adaptor
Special init code that subclasses may want to override.

def _attach_callbacks(self, controller):
overrides kiwi.ui.views.SlaveView._attach_callbacks
Undocumented
def _setup_keypress_handler(self, keypress_handler):
Undocumented
def set_transient_for(self, view):
Makes the view a transient for another view; this is commonly done for dialogs, so the dialog window is managed differently than a top-level one.

def set_title(self, title):
Sets the view's window title

def get_focus_widget(self):
Returns the currently focused widget in the window

def check_focus(self):
Tests the focus in the window and prints a warning if no widget is focused.

def hide(self, *args):
Hide the view's window

def show_all(self, *args, parent=None):
overrides kiwi.ui.views.SlaveView.show_all
Shows all widgets attached to the toplevel widget

def show(self, *args, parent=None):
overrides kiwi.ui.views.SlaveView.show
Show the view's window. If the parent argument is supplied and is a valid view, this view is set as a transient for the parent view.

def quit_if_last(self, *args):
Undocumented
def hide_and_quit(self, *args):
Hides the current window and breaks the GTK+ event loop if this is the last window. Its method signature allows it to be used as a signal handler.