import tkinter as tk
def giris_komutu():
kullan = x.get()
şif = y.get()
print(kullan,"\n",şif)
if kullan == a1 and şif == a2:
print("Doğru")
doğru_yanlış.config(text="Doğru",fg="green")
else:
print("Yanlış")
doğru_yanlış.config(text="Yanlış",fg="red")
arayüz = tk.Tk()
arayüz.geometry("350x250")
arayüz.title("Uygulama")
a1 = "hooklaim"
a2 = "12345"
kullanıcı = tk.Label(text="Kullanıcı Adı",font="Def 15 bold")
kullanıcı.pack()
x = tk.StringVar()
kullanıcı_girişi = tk.Entry(textvariable=x)
kullanıcı_girişi.pack()
şifre = tk.Label(text="Şifre",font="Def 15 bold")
şifre.pack()
y = tk.StringVar()
şifre_girişi = tk.Entry(textvariable=y)
şifre_girişi.pack()
doğru_yanlış = tk.Label(font="Def 30 bold")
doğru_yanlış.pack()
giriş = tk.Button(text="Giriş Yap",command=giris_komutu)
giriş.pack()
arayüz.mainloop()
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?