betty.gui package

Submodules

Module contents

Provide the Graphical User Interface (GUI) for Betty Desktop.

class betty.gui.BettyApplication[source]

Bases: QApplication

A Betty Qt application.

Parameters:
__init__(*args: Any, **kwargs: Any)[source]
Parameters:
property app: App

Get this Qt application’s Betty application.

classmethod instance() Self[source]
Return type:

typing.Self

with_app(app: betty.app.App) collections.abc.AsyncIterator[Self][source]

Temporarily set assign a Betty application to this Qt application.

Parameters:

app (betty.app.App)

Return type:

collections.abc.AsyncIterator[typing.Self]

class betty.gui.GuiBuilder[source]

Bases: object

Allow extensions to provide their own Graphical User Interface component.

gui_build() PyQt6.QtWidgets.QWidget[source]

Build this extension’s Graphical User Interface component.

Return type:

PyQt6.QtWidgets.QWidget

betty.gui.get_configuration_file_filter() betty.locale.Str[source]

Get the Qt file filter for project configuration files.

Return type:

betty.locale.Str

betty.gui.mark_invalid(widget: PyQt6.QtWidgets.QWidget, reason: str) None[source]

Mark a widget as currently containing invalid input.

Parameters:
  • widget (PyQt6.QtWidgets.QWidget)

  • reason (str)

Return type:

None

betty.gui.mark_valid(widget: PyQt6.QtWidgets.QWidget) None[source]

Mark a widget as currently containing valid input.

Parameters:

widget (PyQt6.QtWidgets.QWidget)

Return type:

None