When iIrun this program there is a syntax error and the 'def überprüfen()
' is marked red. What is wrong?
from tkinter import *
password = str(eval(entry.get())
In this part is the syntax error:
def überprüfen(event):
if password:
if len(password) > 8:
res.configure(text = "Ihr Passwort ist zu kurz")
else:
res.configure(text = "Ihr Passwort ist gut")
else:
res.configure(text = "Bitte geben sie ihr Passwort ein")
w = Tk()
Label(w, text="Ihr Passwort: ").pack()
entry = Entry(w)
entry.bind("<Return>", überprüfen())
entry.pack()
res = Label(w)
res.pack()
w.mainloop()
The program should test a password if it is good. Thanks for helping :D