|
cut 3.4.1-rc1
|
Widget that represents a single notification message (Info or Error). More...
Public Member Functions | |
| __init__ (self, message, NotificationType type, timeout=None, parent=None) | |
| Initialize a notification message widget. | |
| on_closeButton_clicked (self) | |
| Handle the close button click. | |
| vanish (self) | |
| Close the notification and emit the notificationRemoved signal. | |
| closeEvent (self, event) | |
| Handle the widget close event, scheduling the widget for deletion. | |
Widget that represents a single notification message (Info or Error).
Info notifications auto-disappear after a configurable timeout (default 15 seconds). Error notifications must be closed explicitly by the user.
| qebanner.QeNotificationMessage.__init__ | ( | self, | |
| message, | |||
| NotificationType | type, | ||
| timeout = None, | |||
| parent = None ) |
Initialize a notification message widget.
| message | The text message to display. |
| type | The notification type (NotificationType.INFO or NotificationType.ERROR). |
| timeout | Timeout in milliseconds before auto-closing (for Info notifications). Defaults to 15000. |
| parent | The parent widget. |
| qebanner.QeNotificationMessage.on_closeButton_clicked | ( | self | ) |
Handle the close button click.
Stops the auto-close timer, closes the widget, and emits the notificationRemoved signal. This slot is auto-connected via ui.setupUi.
| qebanner.QeNotificationMessage.vanish | ( | self | ) |
Close the notification and emit the notificationRemoved signal.
Called automatically when the timeout elapses for Info notifications.