Esempio n. 1
0
def size_cells(
    ws: xlsxWorksheet,
    col_widths: List[Tuple[int, int, int]],
    row_heights: List[Tuple[int, int]],
) -> None:

    for row, height in [(0, BORDER_CELLS_SPAN_CHAR_UNITS)] + row_heights:
        ws.set_row_pixels(row, height=height)
    for col_i, col_f, width in [(0, 0, BORDER_CELLS_SPAN_CHAR_UNITS)
                                ] + col_widths:
        ws.set_column_pixels(col_i, col_f, width=width)