ui.welcomescreen
#
Submodules#
Package Contents#
Classes#
- class ui.welcomescreen.WelcomeScreen(**kw)#
Bases:
kivy.uix.screenmanager.Screen
Welcome Screen/Login Screen Class. This screen contains methods that deal with adding new users and logging in existing users. When an user launches the program for the first time,this scren will display no accounts.
- session#
- processing: kivy.properties.BooleanProperty#
- on_pre_enter(*args)#
Called before the screen is entered
- load_accounts()#
Loads accounts from database and displays them on the welcome screen
- add_account()#
Adds an account to the database
- login_user(popup, *args)#
Logs in a user
- _login_user(username, password)#
Runs on a separate thread to login a user
- confirm_logout(widget)#
Confirms the logout of a user
- logout_user(user, widget)#
Logs Out an user
- toast_Error(e)#
- save_to_database(profile)#
Saves the new user to the database
- Parameters:
profile (Profile) – profile of the user
- set_new_session(widget)#
loads the sesion of the user into the backend
Navigates to the next screen