コード例 #1
0
ファイル: elements.py プロジェクト: mariuscmorar/xlsxpandas
 def vspace(self, value):
     self._vspace = validate_param(value, 'vspace', int, True, 'x >= 0')
コード例 #2
0
ファイル: elements.py プロジェクト: mariuscmorar/xlsxpandas
 def structure(self, value):
     if isinstance(value, str):
         value = self.load_config(value)
     self._structure = validate_param(value, 'structure', list)
コード例 #3
0
ファイル: elements.py プロジェクト: mariuscmorar/xlsxpandas
 def comment_params(self, value):
     self._comment_params = validate_param(value, 'comment_params', dict)
コード例 #4
0
ファイル: elements.py プロジェクト: mariuscmorar/xlsxpandas
 def style(self, value):
     self._style = validate_param(value, 'style', dict)
コード例 #5
0
ファイル: elements.py プロジェクト: mariuscmorar/xlsxpandas
 def comment(self, value):
     self._comment = validate_param(value, 'comment', (str, type(None)))
コード例 #6
0
ファイル: elements.py プロジェクト: mariuscmorar/xlsxpandas
 def context(self, value):
     self._context = validate_param(value, 'context', dict)
コード例 #7
0
 def wb(self, value):
     self._wb = validate_param(value, 'wb', xlsxwriter.workbook.Workbook)
コード例 #8
0
ファイル: elements.py プロジェクト: mariuscmorar/xlsxpandas
 def height(self, value):
     self._height = validate_param(value, 'height', int, True, 'x > 0')
コード例 #9
0
ファイル: elements.py プロジェクト: mariuscmorar/xlsxpandas
 def width(self, value):
     self._width = validate_param(value, 'width', int, True, 'x > 0')
コード例 #10
0
ファイル: elements.py プロジェクト: mariuscmorar/xlsxpandas
 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')
コード例 #11
0
ファイル: elements.py プロジェクト: mariuscmorar/xlsxpandas
 def padding(self, value):
     self._padding = validate_param(value, 'padding', float, True, 'x >= 0')
コード例 #12
0
ファイル: elements.py プロジェクト: mariuscmorar/xlsxpandas
 def horizontal(self, value):
     self._horizontal = validate_param(value, 'horizontal', bool)
コード例 #13
0
ファイル: elements.py プロジェクト: mariuscmorar/xlsxpandas
 def write_args(self, value):
     self._write_args = validate_param(value, 'write_args', dict)
コード例 #14
0
 def na_rep(self, value):
     self._na_rep = validate_param(value, 'na_rep', str)
コード例 #15
0
ファイル: elements.py プロジェクト: mariuscmorar/xlsxpandas
 def keys_params(self, value):
     self._keys_params = validate_param(value, 'keys_params', dict)
コード例 #16
0
ファイル: elements.py プロジェクト: mariuscmorar/xlsxpandas
 def name_args(self, value):
     self._name_args = validate_param(value, 'name_args', dict)
コード例 #17
0
ファイル: elements.py プロジェクト: mariuscmorar/xlsxpandas
 def values_params(self, value):
     self._values_params = validate_param(value, 'values_params', dict)
コード例 #18
0
ファイル: elements.py プロジェクト: mariuscmorar/xlsxpandas
 def col_args(self, value):
     self._col_args = validate_param(value, 'col_args', dict)
コード例 #19
0
ファイル: elements.py プロジェクト: mariuscmorar/xlsxpandas
 def write_method(self, value):
     self._write_method = validate_param(value, 'write_method', str)
コード例 #20
0
 def ws(self, value):
     self._ws = validate_param(value, 'ws', xlsxwriter.worksheet.Worksheet)