known subclasses: kiwi.ui.delegates.Delegate, kiwi.ui.delegates.GladeDelegate, kiwi.ui.delegates.SlaveDelegate, kiwi.ui.delegates.GladeSlaveDelegate
A generic controller that can be attached to any View
BaseController defines one public variable:
| Function | __init__ | Creates a new controller, and attaches itself to a view. The |
| Function | on_key_press | The keypress handler, which dispatches keypresses to the |
| Function | get_parent | parent: the correspondent parent for the controller |
| Function | set_parent | parent: the correspondent parent for the controller |
| Function | get_view | view: the correspondent view for the controller |
| Function | set_view | view: the correspondent view for the controller |
| Function | set_keyactions | Sets the keyactions mapping. See the constructor |
| Function | update_keyactions | XXX |
| Function | _get_all_methods | Undocumented |
Creates a new controller, and attaches itself to a view. The constructor triggers a view.set_constructor(self) call, so the view is also attached to it. The arguments are identical to the view and keyactions class variables.
>>> def my_A_handler(self, widget, event, args):
The keypress handler, which dispatches keypresses to the functions mapped to in self.keyactions
parent: the correspondent parent for the controller
parent: the correspondent parent for the controller
view: the correspondent view for the controller
view: the correspondent view for the controller
Sets the keyactions mapping. See the constructor documentation for a description of it.