def vspace(self, value): self._vspace = validate_param(value, 'vspace', int, True, 'x >= 0')
def structure(self, value): if isinstance(value, str): value = self.load_config(value) self._structure = validate_param(value, 'structure', list)
def comment_params(self, value): self._comment_params = validate_param(value, 'comment_params', dict)
def style(self, value): self._style = validate_param(value, 'style', dict)
def comment(self, value): self._comment = validate_param(value, 'comment', (str, type(None)))
def context(self, value): self._context = validate_param(value, 'context', dict)
def wb(self, value): self._wb = validate_param(value, 'wb', xlsxwriter.workbook.Workbook)
def height(self, value): self._height = validate_param(value, 'height', int, True, 'x > 0')
def width(self, value): self._width = validate_param(value, 'width', int, True, 'x > 0')
def col_width(self, value): self._col_width = \ validate_param(value, 'col_width', (float, str, type(None)), lambda x: x if isinstance(x, (str, type(None))) else float(x), 'x > 0 if isinstance(x, float) else True')
def padding(self, value): self._padding = validate_param(value, 'padding', float, True, 'x >= 0')
def horizontal(self, value): self._horizontal = validate_param(value, 'horizontal', bool)
def write_args(self, value): self._write_args = validate_param(value, 'write_args', dict)
def na_rep(self, value): self._na_rep = validate_param(value, 'na_rep', str)
def keys_params(self, value): self._keys_params = validate_param(value, 'keys_params', dict)
def name_args(self, value): self._name_args = validate_param(value, 'name_args', dict)
def values_params(self, value): self._values_params = validate_param(value, 'values_params', dict)
def col_args(self, value): self._col_args = validate_param(value, 'col_args', dict)
def write_method(self, value): self._write_method = validate_param(value, 'write_method', str)
def ws(self, value): self._ws = validate_param(value, 'ws', xlsxwriter.worksheet.Worksheet)