spinetoolbox.widgets.about_widget

A widget for presenting basic information about the application.

Module Contents

Classes

AboutWidget

About widget class.

class spinetoolbox.widgets.about_widget.AboutWidget(toolbox)[source]

Bases: PySide6.QtWidgets.QWidget

About widget class.

Parameters

toolbox (ToolboxUI) – QMainWindow instance

copy_to_clipboard(_)[source]

Copies package and Python info to clipboard.

calc_pos()[source]

Calculate the top-left corner position of this widget in relation to main window position and size in order to show about window in the middle of the main window.

setup_license_text()[source]

Add license to QTextBrowser.

keyPressEvent(e)[source]

Close form when Escape, Enter, Return, or Space bar keys are pressed.

Parameters

e (QKeyEvent) – Received key press event.

closeEvent(event=None)[source]

Handle close window.

Parameters

event (QEvent) – Closing event if ‘X’ is clicked.

mousePressEvent(e)[source]

Save mouse position at the start of dragging.

Parameters

e (QMouseEvent) – Mouse event

mouseReleaseEvent(e)[source]

Save mouse position at the end of dragging.

Parameters

e (QMouseEvent) – Mouse event

mouseMoveEvent(e)[source]

Moves the window when mouse button is pressed and mouse cursor is moved.

Parameters

e (QMouseEvent) – Mouse event