next up previous contents
Next: Class Adapter Up: Adapters Previous: What are Adapters   Contents

Module adapters

Currently, module adapters contains a few adapters classes.

Adapter
Connects a widget and a property. The property cannot be a container or a user-defined class.

UserClassAdapter
This class handles the communication between a widget and a class instance that is a property inside the model.

RoUserClassAdapter
This is similar to UserClassAdapter, but dedicated to read-only class instances. Used internally to handle for example datetime properties, when connecting a gtk.Calendar.

StaticContainerAdapter
This class can be used to bound a set of widgets to a single property that is a container, like a tuple, a list or a map, or in general a class that implements __getitem__ and __setitem__ methods.

Figure 9: Adapters class hierarchy
Image adapuml



Subsections

Roberto Cavada 2008-08-26