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

Part of kiwi.ui.views

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

A view with a toplevel window.

Function__init__

Creates a new SlaveView. Sets up self.toplevel and self.widgets

Functionget_glade_adaptor

Special init code that subclasses may want to override.

Function_attach_callbacksUndocumented
Function_setup_keypress_handlerUndocumented
Functionset_transient_for

Makes the view a transient for another view; this is commonly done

Functionset_title

Sets the view's window title

Functionget_focus_widget

Returns the currently focused widget in the window

Functioncheck_focus

Tests the focus in the window and prints a warning if no

Functionhide

Hide the view's window

Functionshow_all

Shows all widgets attached to the toplevel widget

Functionshow

Show the view's window.

Functionquit_if_lastUndocumented
Functionhide_and_quit

Hides the current window and breaks the GTK+ event loop if this

def __init__(self, toplevel=None, widgets=None, gladefile=None, toplevel_name=None, domain=None, delete_handler=None):

Creates a new SlaveView. Sets up self.toplevel and self.widgets and checks for reserved names.

def get_glade_adaptor(self):

Special init code that subclasses may want to override.

def _attach_callbacks(self, controller):
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):

Shows all widgets attached to the toplevel widget

def show(self, *args, parent=None):

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.