mirror of
https://github.com/FAUSheppy/ths-reference-data-collector
synced 2025-12-06 06:51:35 +01:00
minor style improvements
This commit is contained in:
7
main.py
7
main.py
@@ -176,14 +176,15 @@ if __name__ == "__main__":
|
|||||||
ws.insert_rows(1)
|
ws.insert_rows(1)
|
||||||
ws.merge_cells('A1:H1')
|
ws.merge_cells('A1:H1')
|
||||||
cell = ws['A1']
|
cell = ws['A1']
|
||||||
cell.value = ws.title
|
cell.value = ws.title[len("Wetterdaten-"):-4].replace("-"," ")
|
||||||
ws['A1'].alignment = openpyxl.styles.Alignment(horizontal='center')
|
ws['A1'].alignment = openpyxl.styles.Alignment(horizontal='center', vertical='center')
|
||||||
cell.fill = openpyxl.styles.PatternFill(start_color='7F03ADFC',
|
cell.fill = openpyxl.styles.PatternFill(start_color='7F03ADFC',
|
||||||
end_color='7F03ADFC', fill_type = 'solid')
|
end_color='7F03ADFC', fill_type = 'solid')
|
||||||
cell.font = openpyxl.styles.Font(bold=True)
|
cell.font = openpyxl.styles.Font(bold=True)
|
||||||
|
ws.row_dimensions[1].height = 30
|
||||||
|
|
||||||
# row height of header (second row behind title) #
|
# row height of header (second row behind title) #
|
||||||
ws.row_dimensions[2].height = 40
|
ws.row_dimensions[2].height = 55
|
||||||
|
|
||||||
# color / wrap_text / bold #
|
# color / wrap_text / bold #
|
||||||
for rows in ws.iter_rows(min_row=2, max_row=2, min_col=1):
|
for rows in ws.iter_rows(min_row=2, max_row=2, min_col=1):
|
||||||
|
|||||||
Reference in New Issue
Block a user