def create_data_table(self, col_headers, data, table_style_for_ties, col_widths=None, tied_metric_bool=False):
[col_headers.append(item) for item in data]
table = Table(col_headers, colWidths=col_widths)
if tied_metric_bool:
if col_headers[0][-1] == "Bench Points":
tied_score_col_widths = [0.75 * inch, 1.75 * inch, 1.75 * inch, 1.00 * inch, 1.50 * inch, 1.00 * inch]
table = Table(col_headers, colWidths=tied_score_col_widths)
table.setStyle(table_style_for_ties)
else:
table.setStyle(self.style)
return table
pdf_generator.py 文件源码
python
阅读 28
收藏 0
点赞 0
评论 0
评论列表
文章目录