Table of Contents

Class: View Twisted-0.18.0/twisted/python/mvc.py

A View which tracks a model and displays it's contents to the user.

Methods   
__init__
controllerFactory
draw
modelChanged
  __init__ 
__init__ (
        self,
        model,
        controller=None,
        )

A view must be told what it's model is, and may be told what it's controller is, but can also look up it's controller if none specified.

  controllerFactory 
controllerFactory (
        self,
        model,
        view,
        )

Hook for subclasses to customize the controller that is associated with the model associated with this view.

  draw 
draw ( self )

Hook subclasses can override to implement drawing the initial view after the class is done initializing, without overriding __init__

  modelChanged 
modelChanged ( self,  changed )

Dispatch changed messages to any update_* methods which may have been defined, then pass the update notification on to the controller.


Table of Contents

This document was automatically generated on Sat Jun 1 22:29:15 2002 by HappyDoc version 2.0