How to use the pyexcelerate.Border.Border 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 / Borders.py View on Github external
def right(self):
        return Utility.lazy_get(self, '_right', Border.Border())
github kz26 / PyExcelerate / pyexcelerate / Borders.py View on Github external
def top(self):
        return Utility.lazy_get(self, '_top', Border.Border())
github kz26 / PyExcelerate / pyexcelerate / Borders.py View on Github external
def left(self):
        return Utility.lazy_get(self, '_left', Border.Border())
github kz26 / PyExcelerate / pyexcelerate / Border.py View on Github external
def get_style_name(style):
        for key, values in Border.STYLE_MAPPING.items():
            if style == key or style in values:
                return key
        # TODO: warn the user?
        return 'thin'
github kz26 / PyExcelerate / pyexcelerate / Borders.py View on Github external
def bottom(self):
        return Utility.lazy_get(self, '_bottom', Border.Border())
github kz26 / PyExcelerate / pyexcelerate / Border.py View on Github external
def __init__(self, color=None, style='thin'):
        self._color = color
        self._style = Border.get_style_name(style)