biometrics_tracker.config-createconfig module

class biometrics_tracker.config.createconfig.ConfigGUI(*args: Any, **kwargs: Any)

Bases: Window

A GUI that allows entry/maintenance of the application’s configuration info

ask_config() ConfigInfo

Displays the GUI and starts the event loop

Returns

an instance of ConfigInfo

Return type

biometrics_tracker.config.createconfig.ConfigInfo

create_config()

Using the info entered to the GUI to create a Python script that creates an instance of config.ConfigInfo

Returns

None

set_font_size(event)

Retrieves the font size value entered by the user. This method is bound to the combo box selection event.

Parameters

event (ttkbootstrap.Event) –

Returns

None

class biometrics_tracker.config.createconfig.ConfigInfo(config_file_path: Optional[Path] = None, db_dir_path: Optional[Path] = None, menu_font_size: int = 12, default_font_size: int = 12, text_font_size: int = 12, log_config: Optional[LoggingConfig] = None, help_url: Optional[str] = None, plugin_dir_path: Optional[Path] = None)

Bases: object

A container for the application’s configuration info

is_complete() bool

Has the user supplied the required configuration info

Returns

True if the info is present, False otherwise

Return type

bool