spinetoolbox.widgets.notification¶
Contains a notification widget.
| author: |
|
|---|---|
| date: | 12.12.2019 |
Module Contents¶
Classes¶
Notification |
Custom pop-up notification widget with fade-in and fade-out effect. |
LinkNotification |
A notification that may have a link. |
NotificationStack |
-
class
spinetoolbox.widgets.notification.Notification(parent, txt, anim_duration=500, life_span=None, alignment=Qt.AlignCenter)[source]¶ Bases:
PySide2.QtWidgets.QWidgetCustom pop-up notification widget with fade-in and fade-out effect.
Parameters: - parent (QWidget) – Parent widget
- txt (str) – Text to display in notification
- anim_duration (int) – Duration of the animation in msecs
- life_span (int) – How long does the notification stays in place in msecs
-
class
spinetoolbox.widgets.notification.LinkNotification(*args, open_link=None, **kwargs)[source]¶ Bases:
spinetoolbox.widgets.notification.NotificationA notification that may have a link.
Parameters: - parent (QWidget) – Parent widget
- txt (str) – Text to display in notification
- anim_duration (int) – Duration of the animation in msecs
- life_span (int) – How long does the notification stays in place in msecs