kiwi.datatypes.BaseConverter(object)
class documentationkiwi.datatypes
(View In Hierarchy)
Known subclasses: kiwi.datatypes._BaseDateTimeConverter, kiwi.datatypes._BoolConverter, kiwi.datatypes._EnumConverter, kiwi.datatypes._FloatConverter, kiwi.datatypes._IntConverter, kiwi.datatypes._ObjectConverter, kiwi.datatypes._StringConverter, kiwi.datatypes._UnicodeConverter, kiwi.ui.proxywidget._PixbufConverter
Abstract converter used by all datatypes
Class Variable | type | |
Class Variable | name | The name of the datatype. |
Class Variable | align | The alignment of the datatype. Normally right for numbers and dates, left for others. Default is left. |
Method | get_compare_function | This can be overriden by a subclass to provide a custom comparison function. @returns: cmp |
Method | as_string | No summary |
Method | from_string | Convert a value from a string. @param value: @returns: |
Method | get_mask | Returns the mask of the entry or None if not specified. @returns: the mask or None. |
This can be overriden by a subclass to provide a custom comparison function.
Returns | cmp |
Convert the value to a string using the specificed format.
Parameters | value | |
format | ||
Returns |
Convert a value from a string.
Parameters | value | |
Returns |
Returns the mask of the entry or None if not specified.
Returns | the mask or None. |