def main_screen(): """ Main application will start here, with two related processes; Registeration and Login """ window = AppWindow(title="Main Window", w=450, h=350) # set the root AppWindow.original_window = window Button(window, text='Register', command=lambda: auth.user_register()).place(x=160, y=150, width=120, height=50) Button(window, text='Login', command=lambda: auth.user_login()).place(x=160, y=80, width=120, height=50) window.mainloop()
def user_login(): """ Endpoint for login password submission """ return auth.user_login()