spinetoolbox.widgets.about_widget
A widget for presenting basic information about the application.
Module Contents
Classes
About widget class. |
- class spinetoolbox.widgets.about_widget.AboutWidget(toolbox)[source]
Bases:
PySide6.QtWidgets.QWidget
About widget class.
- Parameters
toolbox (ToolboxUI) – QMainWindow instance
- 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.
- 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