def column_data_func(self, layout, cell, model, iterator, column): udi = model[iterator][0] dev = self.sources[udi] if column == 0: cell.set_property('text', dev['device']) elif column == 1: cell.set_property('text', dev['label']) elif column == 2: cell.set_property('text', misc.format_size(dev['size']))
def set_size(self, size): size = misc.format_size(size) self.size.set_markup('<span size="x-large">%s</span>' % size)