spinetoolbox.widgets.about_widget¶
A widget for presenting basic information about the application.
| author: |
|
|---|---|
| date: | 14.12.2017 |
Module Contents¶
Classes¶
AboutWidget |
About widget class. |
-
class
spinetoolbox.widgets.about_widget.AboutWidget(toolbox)[source]¶ Bases:
PySide2.QtWidgets.QWidgetAbout widget class.
Parameters: toolbox (ToolboxUI) – QMainWindow instance -
calc_pos(self)[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(self, e)[source]¶ Close form when Escape, Enter, Return, or Space bar keys are pressed.
Parameters: e (QKeyEvent) – Received key press event.
-
closeEvent(self, event=None)[source]¶ Handle close window.
Parameters: event (QEvent) – Closing event if ‘X’ is clicked.
-
mousePressEvent(self, e)[source]¶ Save mouse position at the start of dragging.
Parameters: e (QMouseEvent) – Mouse event
-