from tkinter import *# Ingress all components from Tkinter import tkinter.messagebox as box def condition(): while condition == (username == 'admin' and password == 'ad121'): print = label(text('Welcome back admin user!',bg='Light Blue',font='none 14 bold').place(x=0,y=160)) def dialog1(): username=entry1.get() password = entry2.get() if (username == 'admin' and password == 'admin1'):#Correct log in details box.showinfo('info','Access granted')# correct response else: box.showinfo('info','Invalid Login')# decline response window = Tk() window.geometry('400x400')# The size of the form window window.title('Office login system')#title of the form frame = Frame(window) mlabel = Label(text='Log in system', bg='Light Blue',font='none 18 bold underline')# The colours and font style and size used for the form title mlabel.pack() Label1 = Label(window,text = 'Username:',bg='Light Blue',font='none 14 bold').place(x=0,y=100)# The colours and font style and size used for the entry box entry1 = Entry(window).place(x=140,y=108)#Size and colour of the text box entry1 = Entry(window,bd =5).pack(padx=15, pady=5) Label2 = Label(window,text = 'Password:',bg='Light Blue',font='none 14 bold').place(x=0,y=150)# The colours and font style and size used for the entry box entry2 = Entry(window).place(x=140,y=155)#Size and colour of the text box entry2 = Entry(window, bd=5,).pack(padx = 15,pady=7) window.configure(background='Orange') btn = Button(window, text = 'Check Login',bg='Light Blue',font='none 14 bold',command = dialog1) btn.place(x=130,y=250) frame.pack(padx =200,pady =190) window.mainloop()# The code iterates