Return-Werte
This commit is contained in:
@@ -27,7 +27,7 @@ def input_code():
|
|||||||
|
|
||||||
if ';' in scancode:
|
if ';' in scancode:
|
||||||
kompletter_qrcode = scancode
|
kompletter_qrcode = scancode
|
||||||
nachname, vorname, geburtsdatum, geschlecht, plz, ort, nationalitaet, strasse, helferid, null, hiorg, null, null, null, null = kompletter_qrcode.split(";")
|
nachname, vorname, geburtsdatum, geschlecht, plz, ort, nationalitaet, strasse, helferid, _, hiorg, _, _, _, _ = kompletter_qrcode.split(";")
|
||||||
kompletter_name = nachname + ", " + vorname
|
kompletter_name = nachname + ", " + vorname
|
||||||
|
|
||||||
print("AUSGABE DER DATEN")
|
print("AUSGABE DER DATEN")
|
||||||
@@ -47,12 +47,15 @@ def input_code():
|
|||||||
else:
|
else:
|
||||||
print("Code: " + scancode)
|
print("Code: " + scancode)
|
||||||
|
|
||||||
|
return nachname, vorname, geburtsdatum, geschlecht, plz, ort, nationalitaet, strasse, helferid, hiorg
|
||||||
|
|
||||||
|
|
||||||
def make_qrcode():
|
def make_qrcode():
|
||||||
dateinname_qrcode = input("Dateiname: ").strip()
|
dateinname_qrcode = input("Dateiname: ").strip()
|
||||||
img = qrcode.make('Daniel')
|
img = qrcode.make('Daniel')
|
||||||
img.save(dateinname_qrcode + ".png")
|
img.save(dateinname_qrcode + ".png")
|
||||||
print("QR-Code " + dateinname_qrcode + ".png" + " wurde erstellt.")
|
print("QR-Code " + dateinname_qrcode + ".png" + " wurde erstellt.")
|
||||||
|
return dateinname_qrcode
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
|||||||
Reference in New Issue
Block a user