Exemplo n.º 1
0
def make_spreadsheet(rows):
    sheet = Spreadsheet()
    for row in rows:
        sheet_row = Row()
        sheet.add_row(sheet_row)
        for entry in row:
            sheet_row.append(Cell(entry))
    return sheet
Exemplo n.º 2
0
def make_spreadsheet(rows):
    sheet = Spreadsheet()
    for row in rows:
        sheet_row = Row()
        sheet.add_row(sheet_row)
        for entry in row:
            sheet_row.append(Cell(entry))
    return sheet
Exemplo n.º 3
0
def make_spreadsheet(rows):
    sheet = Spreadsheet()
    row_index = -1
    for row in rows:
        row_index += 1
        if row_index == 0:
            sheet.add_title_row(row)
        else:
            sheet_row = Row()
            sheet.add_row(sheet_row)
            for entry in row:
                sheet_row.append(Cell(entry))
    return sheet