ui.welcomescreen.welcomescreen#

Module Contents#

Classes#

WelcomeScreen

https://raw.githubusercontent.com/Oxlac/MR.DM/main/docs/images/login-screen.png

class ui.welcomescreen.welcomescreen.WelcomeScreen(**kw)#

Bases: kivy.uix.screenmanager.Screen

https://raw.githubusercontent.com/Oxlac/MR.DM/main/docs/images/login-screen.png

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

navigate_to_next_screen(widget=None)#

Navigates to the next screen