betty.gui.project module

Provide project administration for the Graphical User Interface.

final class betty.gui.project.AddLocaleWindow[source]

Bases: BettyMainWindow

A window to add a new project locale.

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

The window’s default height in pixels.

property window_title: Localizable

The human-readable short title of this window.

window_width = 500

The window’s default width in pixels.

final class betty.gui.project.ExtensionPane[source]

Bases: LocalizedObject, QWidget

A configuration pane for a single extension.

Parameters:
__init__(app: betty.app.App, extension_type: type[betty.app.extension.UserFacingExtension])[source]
Parameters:
final class betty.gui.project.GeneralPane[source]

Bases: LocalizedObject, QWidget

A pane to administer general project configuration.

Parameters:

app (betty.app.App)

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

app (betty.app.App)

final class betty.gui.project.GenerateHtmlListForm[source]

Bases: LocalizedObject, QWidget

A form widget to configure whether to generate entity listing HTML pages for the project’s entity types.

Parameters:

app (betty.app.App)

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

app (betty.app.App)

final class betty.gui.project.GenerateWindow[source]

Bases: BettyMainWindow

A window to control a site generation job.

Parameters:
__init__(app: betty.app.App, *, parent: PyQt6.QtCore.QObject | None = None)[source]
Parameters:
closeEvent(a0: PyQt6.QtGui.QCloseEvent | None) None[source]
Parameters:

a0 (PyQt6.QtGui.QCloseEvent | None)

Return type:

None

window_height = 100

The window’s default height in pixels.

property window_title: Localizable

The human-readable short title of this window.

window_width = 500

The window’s default width in pixels.

final class betty.gui.project.LocalesConfigurationWidget[source]

Bases: LocalizedObject, QWidget

A form widget to configuration project locales.

Parameters:

app (betty.app.App)

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

app (betty.app.App)

final class betty.gui.project.LocalizationPane[source]

Bases: LocalizedObject, QWidget

A pane for project localization configuration.

Parameters:

app (betty.app.App)

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

app (betty.app.App)

final class betty.gui.project.ProjectWindow[source]

Bases: BettyPrimaryWindow

A window to administer a project.

Parameters:

app (betty.app.App)

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

app (betty.app.App)

close() bool[source]
Return type:

bool

generate() None[source]

Generate a site for the project.

Return type:

None

save_project_as() None[source]

Copy this project and save it as a new one.

Return type:

None

serve() None[source]

Serve the project’s generated site.

Return type:

None

show() None[source]
Return type:

None

property window_title: Localizable

The human-readable short title of this window.