RTC Toolkit
2.0.0
|
Widget that contains a message, a transparent colored background, and a close button. More...
Public Member Functions | |
def | __init__ (self, parent=None, *args, **kwargs) |
Initializer for TaskFeedback. More... | |
def | on_closeButton_clicked (self) |
Executed when the closeButton is pressed. More... | |
def | show_info (self, str message) |
Shows an info message. More... | |
def | show_error (self, str message) |
Shows an error message. More... | |
def | install_filter_on (self, QObject obj) |
Installs a ResizeFilter on another QObject. More... | |
Public Attributes | |
ui | |
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.
def gui.taskfeedback.TaskFeedback.__init__ | ( | self, | |
parent = None , |
|||
* | args, | ||
** | kwargs | ||
) |
Initializer for TaskFeedback.
@param[in] parent The QObject that is the parent of this object
def 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.
[in] | obj | QObject to monitor ResizeEvents on. |
def gui.taskfeedback.TaskFeedback.on_closeButton_clicked | ( | self | ) |
Executed when the closeButton is pressed.
def gui.taskfeedback.TaskFeedback.show_error | ( | self, | |
str | message | ||
) |
Shows an error message.
The message needs to be closed manually.
[in] | message | A string that contains the message to show |
def gui.taskfeedback.TaskFeedback.show_info | ( | self, | |
str | message | ||
) |
Shows an info message.
This message will automatically dissapear after 7 seconds.
[in] | message | A string that contains the message to show |
gui.taskfeedback.TaskFeedback.ui |