known subclasses: kiwi.ui.widgets.colorbutton.ProxyColorButton, kiwi.ui.widgets.fontbutton.ProxyFontButton, kiwi.ui.widgets.label.ProxyLabel, kiwi.ui.proxywidget.ValidatableProxyWidgetMixin, kiwi.ui.widgets.button.ProxyButton, kiwi.ui.widgets.scale.ProxyHScale, kiwi.ui.widgets.scale.ProxyVScale, kiwi.ui.widgets.filechooser.ProxyFileChooserWidget, kiwi.ui.widgets.filechooser.ProxyFileChooserButton, kiwi.ui.widgets.checkbutton.ProxyCheckButton, kiwi.ui.widgets.radiobutton.ProxyRadioButton, kiwi.ui.widgets.combo.ProxyComboBox
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.
Function | __init__ | Undocumented |
Function | prop_set_data_type | Set the data type for the widget |
Function | set_data_format | Undocumented |
Function | set_options_for_datatype | Set some options to be passed to the datatype converter. |
Function | read | Get the content of the widget. |
Function | update | Update the content value of the widget. |
Function | _as_string | Convert a value to a string |
Function | _from_string | Convert a string to the data type of the widget |
Set the data type for the widget
Set some options to be passed to the datatype converter. Any additional parameter will be passed the the converter when converting an object to a string, for displaying in the widget. Note that the converter.as_string method should be able to handle such parameters.
Get the content of the widget. The type of the return value
Update the content value of the widget.
Convert a value to a string
Convert a string to the data type of the widget This may raise a kiwi.datatypes.ValidationError if conversion failed