def GET(): global userbox, passbox, error S1 = userbox.get() S2 = passbox.get() if (S1 == 'bhaviya' and S2 == '1234567'): menu() elif (S1 == 'sejal taneja' and S2 == 'btech'): menu() else: error = tkinter.Label(bottomframe, text="Wrong Id / Password \n TRY AGAIN", fg="red", font="bold") error.pack()
def GET(): global userbox, passbox, error S1 = userbox.get() S2 = passbox.get() if S1 == 'amim' and S2 == '123': menu() elif (S1 == 'suchu' and S2 == '123'): menu() else: error = tkinter.Label(bottomframe, text="Wrong Id / Password \n TRY AGAIN", fg="red", font="bold") error.pack()
def GET(): global userbox, passbox, error S1 = userbox.get() S2 = passbox.get() query = "select * from Login where username=? and password=?" data = cursor.execute(query, (S1, S2)) if (len(cursor.fetchall()) > 0): menu() else: error = tkinter.Label(bottomframe, text="Wrong Id / Password \n TRY AGAIN", fg="red", font='Times 16 bold') error.pack() '''if(S1=='sanjyot' and S2=='1234567'):
def GET(): global userbox, passbox, error S1 = userbox.get() S2 = passbox.get() if (S1 == "Yuri" and S2 == '123'): menu() elif (S1 == "Bia" and S2 == '321'): menu() else: error = tkinter.Label( bottomframe, text="USUÁRIO OU SENHA INVÁLIDO. DIGITE NOVAMENTE!", fg="red", font="bold") error.pack()
def GET(): global userbox, passbox, error S1 = userbox.get() S2 = passbox.get() if (S1 == 'san1' and S2 == '123'): menu() elif (S1 == 'san2' and S2 == '123'): menu() else: error = tkinter.Label( bottomframe, text="FAVOR DIGITAR NOME DE USUÁRIO E SENHA CORRETA.", fg="red", font="bold") error.pack()
frame.pack_propagate(False) copy_of_image = Image.open("images/hospital.jpeg") photo = ImageTk.PhotoImage(copy_of_image) label = Label(frame, image=photo) label.place(x=0, y=0, relwidth=1, relheight=1) label.bind('<Configure>', resize_image) center_frame = Frame(frame, relief='raised', borderwidth=2) center_frame.place(relx=0.5, rely=0.5, anchor=S) username = Label(center_frame, text="USERNAME", width=18, font="helvetica 19 bold") username.pack() userbox = Entry(center_frame, width=16) userbox.pack() password = Label(center_frame, text="Password", width=20, font="helvetica 19 bold") password.pack() passbox = Entry(center_frame, show="*", width=16) passbox.pack() login = Button(center_frame, text="LOGIN", command=GET, font="helvetica 19 bold") login.pack() root.mainloop() ''' menu()