Table Of Contents

Previous topic

MultiViewLeaf

Next topic

BasicTreeModel

This Page

phoenix_title mvctree

MVCTree is a control which handles hierarchical data. It is constructed in model-view-controller architecture, so the display of that data, and the content of the data can be changed greatly without affecting the other parts.

MVCTree actually is even more configurable than MVC normally implies, because almost every aspect of it is pluggable:

  • MVCTree - Overall controller, and the window that actually gets placed in the GUI.
    • Painter - Paints the control. The ‘view’ part of MVC.
      • NodePainter - Paints just the nodes
      • LinePainter - Paints just the lines between the nodes
      • TextConverter - Figures out what text to print for each node
    • Editor - Edits the contents of a node, if the model is editable.
    • LayoutEngine - Determines initial placement of nodes
    • Transform - Adjusts positions of nodes for movement or special effects.
    • TreeModel - Contains the data which the rest of the control acts on. The ‘model’ part of MVC.

Author/Maintainer - Bryn Keller <xoltar@starship.python.net>

Note

This module is not supported in any way. Use it however you wish, but be warned that dealing with any consequences is entirly up to you. –Robin

class_summary Classes Summary

BasicTreeModel A very simple treemodel implementation, but flexible enough for many needs.
Editor  
FileEditor  
FileWrapper Node class for FSTreeModel.
FSTreeModel This treemodel models the filesystem starting from a given path.
LateFSTreeModel This treemodel models the filesystem starting from a given path.
LayoutEngine Interface for layout engines.
LinePainter The linepainter interface.
MVCTree The main mvc tree class.
MVCTreeEvent  
MVCTreeNode Used internally by MVCTree to manage its data. Contains information about
MVCTreeNotifyEvent  
NodePainter This is the interface expected of a nodepainter.
NullTransform  
Painter This is the interface that MVCTree expects from painters. All painters should
Rect  
StrTextConverter  
TextConverter TextConverter interface.
Transform Transform interface.
TreeLayout  
TreeLinePainter  
TreeModel Interface for tree models
TreeNodePainter  
TreePainter The default painter class. Uses double-buffering, delegates the painting of nodes and