Widget that contains a message, a transparent colored background, and a close button.
More...
Widget that contains a message, a transparent colored background, and a close button.
It automatically closes after a timeout, or can stay opened until closed.
◆ __init__()
| gui.taskfeedback.TaskFeedback.__init__ |
( |
| self, |
|
|
| parent = None ) |
Initializer for TaskFeedback.
- Parameters
-
| [in] | parent | The QObject that is the parent of this object |
◆ install_filter_on()
| gui.taskfeedback.TaskFeedback.install_filter_on |
( |
| self, |
|
|
QObject | obj ) |
Installs a ResizeFilter on another QObject.
This allows the widget to have the same size as another one, without having it on a layout.
- Parameters
-
| [in] | obj | QObject to monitor ResizeEvents on. |
◆ on_closeButton_clicked()
| gui.taskfeedback.TaskFeedback.on_closeButton_clicked |
( |
| self | ) |
|
Executed when the closeButton is pressed.
- Note
- The Signal clicked from closeButton is auto-connected to this Slot during the call to ui.setupUi in the init
◆ show_error()
| gui.taskfeedback.TaskFeedback.show_error |
( |
| self, |
|
|
str | message ) |
Shows an error message.
The message needs to be closed manually.
- Parameters
-
| [in] | message | A string that contains the message to show |
◆ show_info()
| gui.taskfeedback.TaskFeedback.show_info |
( |
| self, |
|
|
str | message ) |
Shows an info message.
This message will automatically disappear after 7 seconds.
- Parameters
-
| [in] | message | A string that contains the message to show |
◆ _msg
| str gui.taskfeedback.TaskFeedback._msg = "" |
|
protected |
◆ _resize_filter
| gui.taskfeedback.TaskFeedback._resize_filter = None |
|
protected |
◆ _timer
| gui.taskfeedback.TaskFeedback._timer = QTimer() |
|
protected |
◆ hide
| gui.taskfeedback.TaskFeedback.hide |
◆ ui
| gui.taskfeedback.TaskFeedback.ui = Ui_TaskFeedback() |
The documentation for this class was generated from the following file: