[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

8. Extension Modules

To actually get a useful window manager one must extend the core classes (see section 4. Core Classes) with various extension classes. Extension classes take the form of mixin classes, i.e. we just inherit it with the corresponding core class. They will add methods to the core class, and can usually be configured with class attributes.

For example, to create a client which highlights the window border when it is focused one could use this fragment:

 
class MyClient(wmanager.Client, border.BorderClient):
    pass

Because of the mixin technique, we need some ground rules for naming schemes, configuration and initialization. Finally some extension modules are described in detail. For full extension examples, look in the directory examples in the distribution tree.

8.1 Extension Coding Conventions  How not to trample on each other's feet.
8.2 Extension Classes Initialization  Mixin initialization methods.
8.3 Available Extension Modules  What have already been written?



This document was generated by Moshe Zadka on April, 3 2002 using texi2html