Design Pattern Examples
Overview of object-oriented design patterns
decorator Directory Reference
Directory dependency graph for decorator:
decorator

Files

file  decorator/__init__.py [code]
 Python implementation of the Decorator Pattern example.
 
file  decorator_classes.py [code]
 Implementation of the IRenderElement interface, Decorator base class, TextElement class, and the concrete decorator classes as used in the Decorator Pattern.
 
file  decorator_exercise.py [code]
 Implementation of the Decorator_Exercise() function as used in the Decorator Pattern.