betty.gui.app module

Provide the desktop application/Graphical User Interface.

class betty.gui.app.ApplicationConfiguration[source]

Bases: BettyMainWindow

A window to administer Betty application configuration.

Parameters:
__init__(app: betty.app.App, *, parent: PyQt6.QtCore.QObject | None = None)[source]
Parameters:
window_height = 150

The window’s default height in pixels.

property window_title: Localizable

The human-readable short title of this window.

window_width = 400

The window’s default width in pixels.

class betty.gui.app.BettyPrimaryWindow[source]

Bases: BettyMainWindow

A primary, top-level, independent application window.

Parameters:

app (betty.app.App)

__init__(app: betty.app.App, /)[source]
Parameters:

app (betty.app.App)

clear_caches() None[source]

Clear Betty’s caches.

Return type:

None

new_project() None[source]

Open a window for a new project.

Return type:

None

open_application_configuration() None[source]

Open the Betty application configuration window.

Return type:

None

open_project() None[source]

Open a project window.

Return type:

None

report_bug() None[source]

Open the web page where users can report bugs.

Return type:

None

request_feature() None[source]

Open the web page where users can request new features.

Return type:

None

property window_title: Localizable

The human-readable short title of this window.

class betty.gui.app.WelcomeWindow[source]

Bases: BettyPrimaryWindow

The window to show when launching the Betty Graphical User Interface.

Parameters:

app (betty.app.App)

__init__(app: betty.app.App)[source]
Parameters:

app (betty.app.App)

window_height = 600

The window’s default height in pixels.

window_width = 1

The window’s default width in pixels.