Package kiwi :: Package ui :: Module views :: Class BaseView
[frames | no frames]

Type BaseView

object --+    
         |    
 SlaveView --+
             |
            BaseView

Known Subclasses:
Delegate, GladeDelegate

A view with a toplevel window.
Method Summary
  check_focus(self)
Tests the focus in the window and prints a warning if no widget is focused.
  get_focus_widget(self)
Returns the currently focused widget in the window
  get_glade_adaptor(self)
Special init code that subclasses may want to override.
  hide(self, *args)
Hide the view's window
  hide_and_quit(self, *args)
Hides the current window and breaks the GTK+ event loop if this is the last window.
  quit_if_last(self, *args)
  set_title(self, title)
Sets the view's window title
  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.
  show(self, parent, *args)
Show the view's window.
  show_all(self, *args)
Shows all widgets attached to the toplevel widget
    Inherited from SlaveView
  add_proxy(self, model, widgets)
Add a proxy to this view that automatically update a model when the view changes.
  attach_slave(self, name, slave)
Attaches a slaveview to the current view, substituting the widget specified by name.
  check_and_notify_validity(self, force)
  connect_multiple(self, widgets, signal, handler, after)
Connect the same handler to the specified signal for a number of widgets.
  detach_slave(self, name)
Detatch a slave called name from view
  disconnect_autoconnected(self)
Disconnect handlers previously connected with autoconnect_signals()
  focus_toplevel(self)
Focuses the toplevel widget in the view
  focus_topmost(self, widgets)
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
  force_validation(self)
  get_sizegroups(self)
Return a list of sizegroups for the current view.
  get_slave(self, holder)
  get_toplevel(self)
Returns the toplevel widget in the view
  get_topmost_widget(self, widgets, can_focus)
A real hack; returns the widget that is most to the left and top of the window.
  get_widget(self, name)
Retrieves the named widget from the View
  handler_block(self, widget, signal_name)
  handler_unblock(self, widget, signal_name)
  on_attach(self, parent)
Hook function called when attach_slave is performed on slave views.
  on_startup(self)
This is a virtual method that can be customized by classes that want to perform additional initalization after a controller has been set for it.
  register_validate_function(self, function)
The signature of the validate function is:
  set_controller(self, controller)
Sets the view's controller, checking to see if one has already been set before.
  show_and_loop(self, parent)
Runs show() and runs the GTK+ event loop.

Class Variable Summary
    Inherited from SlaveView
NoneType controller = None                                                                  
NoneType domain = None                                                                  
NoneType gladefile = None                                                                  
NoneType toplevel = None                                                                  
NoneType toplevel_name = None                                                                  
list widgets = []

Method Details

check_focus(self)

Tests the focus in the window and prints a warning if no widget is focused.

get_focus_widget(self)

Returns the currently focused widget in the window

get_glade_adaptor(self)

Special init code that subclasses may want to override.
Overrides:
kiwi.ui.views.SlaveView.get_glade_adaptor (inherited documentation)

hide(self, *args)

Hide the view's window

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.

set_title(self, title)

Sets the view's window title

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.

show(self, parent=None, *args)

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.
Overrides:
kiwi.ui.views.SlaveView.show

show_all(self, parent=None, *args)

Shows all widgets attached to the toplevel widget
Overrides:
kiwi.ui.views.SlaveView.show_all (inherited documentation)

Generated by Epydoc 2.1 on Mon Jan 29 16:46:04 2007 http://epydoc.sf.net