1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | from tkinter import * from tkinter import messagebox window =Tk() window.title("·Î±×ÀÎ") window.geometry("300x150") def logincheck() : username = txt1.get() password = txt2.get() if username == "shjung" : if password == "shjung1234" : messagebox.showinfo("login", "shjung´Ô ȯ¿µÇÕ´Ï´Ù") else : messagebox.showinfo("login", "¾ÏÈ£°¡ Ʋ·È³ß!!") else : messagebox.showinfo("login", "±×·± login ¾ø¾î!!") lbl1 = Label(window, text="¾ÆÀ̵ð",font="±¼¸² 20 bold") lbl1.pack() txt1 = Entry(window) txt1.pack() lbl2 = Label(window, text="ºñ¹Ð¹øÈ£",font="±¼¸² 20 bold") lbl2.pack() txt2 = Entry(window, show="*") txt2.pack() btn = Button(window, text="login",font="±¼¸² 20 bold",command=logincheck) btn.pack() window.mainloop() | cs |