k.d.BaseConverter(object) : class documentation

Part of kiwi.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 Variablestype
nameThe name of the datatype.
alignThe 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
Method as_string Convert the value to a string using the specificed format.
Method from_string Convert a value from a string.
Method get_mask Returns the mask of the entry or None if not specified.
def get_compare_function(self):
This can be overriden by a subclass to provide a custom comparison function.
Returnscmp
def as_string(self, value, format):
Convert the value to a string using the specificed format.
Parametersvalue
format
Returns
def from_string(self, value):
Convert a value from a string.
Parametersvalue
Returns
def get_mask(self):
Returns the mask of the entry or None if not specified.
Returnsthe mask or None.
API Documentation for Kiwi, generated by pydoctor at 2010-05-20 02:10:57.