next up previous contents
Next: Views Up: Controllers Previous: Model registration   Contents


View registration

View registration (see View class, below) occurs during View construction. An important method of the class Controller that user can override is register_view, that the associated view will call during registration. This can be used to connect custom signals to widgets of the view, or to perform some initialization that can be performed only when model, controller and view are actually connected. register_view gets the view instance that is performing its registration within the controller. See section 5.4.4 for an example of how this mechanism may be exploited effectively.



Roberto Cavada 2008-08-26