Exemplo n.º 1
0
def openxyl_row_copy(ws, row, strike=False):
    copied_row = []
    for cell in row:
        new_cell = Cell(ws, value=cell.value)
        new_cell.style = copy(cell.style)
        new_cell.font = new_cell.font + Font(strike=strike)
        copied_row.append(new_cell)
    return copied_row
Exemplo n.º 2
0
def styled_cells(data, ws, style):
    for c in data:
        c = Cell(ws, value=c)
        c.style = style
        yield c