How to use the pyexcelerate.Format.Format function in PyExcelerate

To help you get started, we’ve selected a few PyExcelerate examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github kz26 / PyExcelerate / pyexcelerate / Style.py View on Github external
def format(self):
        # don't use default because default should be const
        return Utility.lazy_get(self, '_format', Format.Format())
github kz26 / PyExcelerate / pyexcelerate / Format.py View on Github external
def __or__(self, other):
        return Format(
            format=Utility.nonboolean_or(self.format, other.format, None))
github kz26 / PyExcelerate / pyexcelerate / Worksheet.py View on Github external
def set_cell_value(self, x, y, value):
        if DataTypes.get_type(value) == DataTypes.DATE:
            self.get_cell_style(x, y).format = Format.Format('yyyy-mm-dd')
        if x < len(self._dense_cells) and y < len(self._dense_cells[x]):
            self._dense_cells[x][y] = value
        else:
            self._sparse_cells[x][y] = value
        self._columns = max(self._columns, y)
github kz26 / PyExcelerate / pyexcelerate / Format.py View on Github external
def __xor__(self, other):
        return Format(
            format=Utility.nonboolean_xor(self.format, other.format, None))
github kz26 / PyExcelerate / pyexcelerate / Format.py View on Github external
def __and__(self, other):
        return Format(
            format=Utility.nonboolean_and(self.format, other.format, None))
github kz26 / PyExcelerate / pyexcelerate / Format.py View on Github external
def is_default(self):
        return self == Format()