def __init__(self, parent, value, type='string', **kw):
        self.value = value
        self.type = type
        self.column = len(parent.children)
        kw['x'] = parent.parent.parent.heading.children[self.column].x
        if type == 'time':
            if value.hour:
                text = '%d:%02d:%02d'%(value.hour, value.minute, value.second)
            else:
                text = '%d:%02d'%(value.minute, value.second)
        else:
            text = str(value)
        super(Cell, self).__init__(parent, text, **kw)
dataset/ETHPy150Open ardekantur/pyglet/contrib/wydget/wydget/widgets/table.py/Cell.__init__/original