42 lines
1.0 KiB
Python
42 lines
1.0 KiB
Python
# Betroffene BY DANIEL SCHLAPA
|
|
|
|
# Bsp. QRCODE: Mustermann;Max;01.01.2024;m;40000;Musterstadt;deutsch;Musterstraße 1;;;;;;
|
|
# qrcode = "Mustermann;Max;01.01.2024;m;40000;Musterstadt;deutsch;Musterstraße 1;;;;;;"
|
|
|
|
import openpyxl
|
|
from openpyxl.styles import Font
|
|
|
|
|
|
def make_tabellen_ueberschrift():
|
|
workbook = openpyxl.Workbook()
|
|
|
|
tabelle1 = workbook.active
|
|
|
|
tabelle1['A1'] = 'Name'
|
|
tabelle1['B1'] = 'Vorname'
|
|
tabelle1['C1'] = 'Geburtsdatum'
|
|
tabelle1['D1'] = 'Geschlecht'
|
|
tabelle1['E1'] = 'PLZ'
|
|
tabelle1['F1'] = 'Ort'
|
|
tabelle1['G1'] = 'Nationalität'
|
|
tabelle1['H1'] = 'Strasse'
|
|
tabelle1['I1'] = 'Kommt Datum'
|
|
tabelle1['J1'] = 'Kommt Zeit'
|
|
tabelle1['K1'] = 'Geht Datum'
|
|
tabelle1['L1'] = 'Geht Zeit'
|
|
|
|
schrift_fett = Font(bold=True)
|
|
for col in range(1, 15):
|
|
cell = tabelle1.cell(row=1, column=col)
|
|
cell.font = schrift_fett
|
|
|
|
workbook.save('Betroffeneliste.xlsx')
|
|
|
|
|
|
def main():
|
|
make_tabellen_ueberschrift()
|
|
|
|
|
|
if __name__ == '__main__':
|
|
main()
|