I want to exit my home() before login()
def _home():
def button_pressed():
if admin:
_admin_login()
if pilot:
_pilot_login()
#creating button for admin user
admin=tk.Button(home, text="Admin logIN", width=20,height=3, bd=0, highlightthicknes=0, command=button_pressed)
admin.place(x=150, y=200)
#configuring admin button
admin.config(image=photoAdmin, width="200", height="240")
#creating button for pilot log in
pilot=tk.Button(home, text="Pilot LogIN", width=20, height=3, bd=0, command=button_pressed)
pilot.place(x=400, y=200)
#conguring pilot button
pilot.config(image=photoPilot, width="200", height="240")