Beispiel #1
0
    def check_emp():
        name = entry1.get()
        password = entry2.get()
        if len(name) != 0 and len(password) != 0:
            result = backend.check_employee(name, password)
            print(result)
            if result:
                employee_frame.grid_forget()
                page2()
            else:
                label = Label(employee_frame, text="Invalid id and pasasword")
                label.grid(row=6, pady=10)
                button = Button(employee_frame,
                                text='Exit',
                                command=back_to_main3)
                button.grid(row=7)

                mainloop()
        else:
            label = Label(employee_frame, text="Please Fill All Entries")
            label.grid(row=6, pady=10)
            button = Button(employee_frame, text='Exit', command=back_to_main3)
            button.grid(row=7)

            mainloop()
Beispiel #2
0
    def check_emp():
        name = entry1.get()
        password = entry2.get()
        if len(name) != 0 and len(password) != 0:
            result = backend.check_employee(name, password)
            print(result)
            if result:
                employee_frame.grid_forget()
                page2()
            else:
                label = Label(employee_frame, text="Invalid id and pasasword")
                label.grid(row=6, pady=10)
                button = Button(employee_frame, text='Exit', command=back_to_main3)
                button.grid(row=7)

                mainloop()
        else:
            label = Label(employee_frame, text="Please Fill All Entries")
            label.grid(row=6, pady=10)
            button = Button(employee_frame, text='Exit', command=back_to_main3)
            button.grid(row=7)

            mainloop()