Class k.d.BaseConverter(object):

Part of kiwi.datatypes

known subclasses: kiwi.ui.proxywidget._PixbufConverter, kiwi.datatypes._StringConverter, kiwi.datatypes._UnicodeConverter, kiwi.datatypes._IntConverter, kiwi.datatypes._BoolConverter, kiwi.datatypes._FloatConverter, kiwi.datatypes._BaseDateTimeConverter, kiwi.datatypes._ObjectConverter, kiwi.datatypes._EnumConverter

Abstract converter used by all datatypes
cvar type
cvar nameThe name of the datatype.
cvar alignThe alignment of the datatype. Normally right for numbers and dates, left for others. Default is left.
Functionget_compare_function
This can be overriden by a subclass to provide a custom comparison
Functionas_string
Convert the value to a string using the specificed format.
Functionfrom_string
Convert a value from a string.
Functionget_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.
def as_string(self, value, format):
Convert the value to a string using the specificed format.
def from_string(self, value):
Convert a value from a string.
def get_mask(self):
Returns the mask of the entry or None if not specified.