Skip to content

backend_qt

sgp.ui.backend_qt.FigureCanvas module-attribute

FigureCanvas = CustomFigureCanvasQTAgg

sgp.ui.backend_qt.CustomFigureCanvasQTAgg

Bases: FigureCanvasQTAgg

sgp.ui.backend_qt.CustomFigureManagerQT

Bases: FigureManagerQT

Custom figure manager for the qt backend that adds a window for displaying matplotlib figures.

sgp.ui.backend_qt.SGPMainWindow

Bases: MainWindow, QObject

Custom main window for the qtconsole that adds a window for displaying matplotlib figures.

sgp.ui.backend_qt.SGPMainWindow.ann property

ann: ANN

Get the ann object.

sgp.ui.backend_qt.SGPMainWindow.io property

io: SGPIO

Get the io object.

sgp.ui.backend_qt.SGPMainWindow.mpd property

mpd: MPD

Get the mpd object.

sgp.ui.backend_qt.SGPMainWindow.about

about()

Show the information about the application.

sgp.ui.backend_qt.SGPMainWindow.corrData

corrData() -> dict

Get the correlation data.

sgp.ui.backend_qt.SGPMainWindow.corrTab

corrTab(data: dict = None) -> TableWidget

Query the correlation matrix.

sgp.ui.backend_qt.SGPMainWindow.distData

distData() -> dict

Get the distribution data.

sgp.ui.backend_qt.SGPMainWindow.distTab

distTab(data: dict = None) -> TableWidget

Query the distribution parameters.

sgp.ui.backend_qt.SGPMainWindow.english

english()

Change the language to English.

sgp.ui.backend_qt.SGPMainWindow.fromBytes

fromBytes(*, bytes: bytes | None = None, path: str | None = None, **kwargs)

Load the project from a binary string or file if a path is provided.

sgp.ui.backend_qt.SGPMainWindow.fromCryptography

fromCryptography(*, binary: bytes | None = None, path: str | None = None, **kwargs)

Load the project from a binary string or file if a path is provided.

sgp.ui.backend_qt.SGPMainWindow.fromDict

fromDict(*, data: dict, **kwargs)

Load the project from a dictionary.

sgp.ui.backend_qt.SGPMainWindow.fromJson

fromJson(*, string: str | None = None, path: str | None = None, **kwargs)

Load the project from a json string or file if a path is provided.

sgp.ui.backend_qt.SGPMainWindow.fromToml

fromToml(*, string: str | None = None, path: str | None = None, **kwargs)

Load the project from a toml string or file if a path is provided.

sgp.ui.backend_qt.SGPMainWindow.fromYaml

fromYaml(*, string: str | None = None, path: str | None = None, **kwargs)

Load the project from a yaml string or file if a path is provided.

sgp.ui.backend_qt.SGPMainWindow.github

github()

Open project GitHub homepage.

sgp.ui.backend_qt.SGPMainWindow.hssTab

hssTab() -> HSSTab

Query the parameters for the HSS model.

sgp.ui.backend_qt.SGPMainWindow.init_sgp_menu_bar

init_sgp_menu_bar()

Setup the menu bar.

sgp.ui.backend_qt.SGPMainWindow.new

new()

Create a new project.

sgp.ui.backend_qt.SGPMainWindow.open

open(filePath: str = None)

Open a project.

sgp.ui.backend_qt.SGPMainWindow.queryTab

queryTab() -> QueryTab

Query the parameters from the database.

sgp.ui.backend_qt.SGPMainWindow.reportTab

reportTab() -> TableWidget

Show the statistics.

sgp.ui.backend_qt.SGPMainWindow.requestRestart

requestRestart()

Request a restart of the application.

sgp.ui.backend_qt.SGPMainWindow.save

save()

Save the project.

sgp.ui.backend_qt.SGPMainWindow.saveAs

saveAs()

Save the project as a new file.

sgp.ui.backend_qt.SGPMainWindow.setLanguage

setLanguage(language: Literal['en', 'zh_CN'])

Change the language of the application.

sgp.ui.backend_qt.SGPMainWindow.setupCentralWidget

setupCentralWidget()

Setup the central widget.

sgp.ui.backend_qt.SGPMainWindow.simplifiedChinese

simplifiedChinese()

Change the language to Chinese.

sgp.ui.backend_qt.SGPMainWindow.statsTab

statsTab() -> TableWidget

Show the statistics.

sgp.ui.backend_qt.SGPMainWindow.toBytes

toBytes(path: str | None = None, **kwargs) -> bytes | None

Convert the project to a binary string or save it to a file if a path is provided.

sgp.ui.backend_qt.SGPMainWindow.toCryptography

toCryptography(path: str | None = None, **kwargs) -> bytes | None

Convert the project to a binary string or save it to a file if a path is provided.

sgp.ui.backend_qt.SGPMainWindow.toDict

toDict(**kwargs) -> dict

Convert the project to a dictionary.

sgp.ui.backend_qt.SGPMainWindow.toJson

toJson(path: str | None = None, **kwargs) -> str | None

Convert the project to a json string or save it to a file if a path is provided.

sgp.ui.backend_qt.SGPMainWindow.toToml

toToml(path: str | None = None, **kwargs) -> str | None

Convert the project to a toml string or save it to a file if a path is provided.

sgp.ui.backend_qt.SGPMainWindow.toYaml

toYaml(path: str | None = None, **kwargs) -> str | None

Convert the project to a yaml string or save it to a file if a path is provided.

sgp.ui.backend_qt.getSgpMainWindow

getSgpMainWindow() -> Optional['SGPMainWindow']

Return the main window for the application.