next up previous contents
Next: progen: A Project Generator Up: Adapters Previous: Support for adapter instantiation   Contents


Supported widgets

Here follows the list of those widgets that are currently supported by the framework out of the box. In method Controller.adapt when adapting a widget, it is searched into this list a matching and one or more adapters are created.

If no matching is found, a fallback tentative is to connect to widget signal "changed" if there exists. If this fails, an assertion is raised.

If a widget is not listed here, it does not mean that it is not supported. Instead, it will be enough to specify all required parameters when instantiating adapters.

Widget type Property type Notes
gtk.Arrow gtk.ArrowType Current direction
gtk.Calendar datetime or date Selected day
gtk.CheckMenuItem types.BooleanType Current toggle state
gtk.ColorButton gtk.gdk.Color Selected colour
gtk.ColorSelection gtk.gdk.Color Selected colour
gtk.Entry String Current entry content
gtk.Expander types.BooleanType True if expanded
gtk.Label String or number Label content
gtk.ToggleButton types.BooleanType Current toggle state


next up previous contents
Next: progen: A Project Generator Up: Adapters Previous: Support for adapter instantiation   Contents
Roberto Cavada 2008-08-26