Package kiwi :: Package ui :: Module proxywidget :: Class ProxyWidgetMixin
[frames | no frames]

Type ProxyWidgetMixin

object --+
         |
        ProxyWidgetMixin

Known Subclasses:
ProxyButton, ProxyCheckButton, ProxyColorButton, ProxyComboBox, ProxyFileChooserButton, ProxyFileChooserWidget, ProxyFontButton, ProxyLabel, ProxyRadioButton, ValidatableProxyWidgetMixin

This class is a mixin that provide a common interface for KiwiWidgets.

Usually the Proxy class need to set and get data from the widgets. It also need a validation framework.
Method Summary
  prop_set_data_type(self, data_type)
Set the data type for the widget
Must matche the data-type property. read(self)
Get the content of the widget.
  set_data_format(self, format)
  update(self, value)

Class Variable Summary
tuple allowed_data_types: A list of types which we are allowed to use in this class.

Method Details

prop_set_data_type(self, data_type)

Set the data type for the widget
Parameters:
data_type - can be None, a type object or a string with the name of the type object, so None, "<type 'str'>" or 'str'

read(self)

Get the content of the widget. The type of the return value
Returns:
None if the user input a invalid value
           (type=Must matche the data-type property.)

update(self, value)

Parameters:
value -

Class Variable Details

allowed_data_types

A list of types which we are allowed to use in this class.
Type:
tuple
Value:
()                                                                     

Generated by Epydoc 2.1 on Fri Sep 15 11:53:23 2006 http://epydoc.sf.net