biometrics_tracker.main module - desktop application entry point

This script is the entry point for the Biometrics Tracking application. It attempts to open a JSON formatted file which contains the application’s configuration info. If this file is not found, which will happen the first time the application is invoked, the config.createconfig.ConfigGUI Window will be presented to allow configuration parameters to be set. If the import succeeds, the gui.Application Window will be presented.

class biometrics_tracker.main.main.ErrorDialog(*args: Any, **kwargs: Any)

Bases: Window

Used to present error messages to the user

close()

Close the error message GUI

Returns

None

class biometrics_tracker.main.main.Launcher(queue_mgr: Queues)

Bases: object

Launches the Biometrics Tracker app, or if this is the first time invocation, prompt for configuation info, then start the application

launch_config(homepath: Path) bool

Launch a GUI to prompt the user for configuration info

Parameters

homepath (pathlib.Path) – a pathlib object associated with the user’s home directory

Returns

quit flag

Return type

bool

launch_gui(config_path: Path) bool

Launch the Biometric Tracker GUI

Parameters

config_path (pathlib.Path) – a pathlib object connected to the configuration file

Returns

quit flag

Return type

bool

launch_scheduled_entry(config_path: Path) bool

Launch the Biometric Tracker GUI

Parameters

config_path (pathlib.Path) – a pathlib object connected to the configuration file

Returns

quit flag

Return type

bool

launch_scheduler(config_path: Path) bool

Launch the Biomentrics Tracker Scheduler

Parameters

config_path (pathlib.Path) – a Path object pointing to the configuration file

Returns

quit flag

Return type

bool

start_database(filename: str)

Start the database thread

Parameters

filename (str) – The file name of the SQLite3 database

Returns

None

biometrics_tracker.main.main.launch()

Check for a configuration file. If one is found, launch the Biometrics Tracking GUI or Scheduler of Config GUI, according to the command line argument. If not, launch the Config GUI