spinetoolbox.widgets.notification
Contains a notification widget.
Module Contents
Classes
Custom pop-up notification widget with fade-in and fade-out effect. |
|
A notification with a button. |
|
A notification that may have a link. |
|
|
- class spinetoolbox.widgets.notification.Notification(parent, txt, anim_duration=_FADE_IN_OUT_DURATION, life_span=None, word_wrap=True, corner=Qt.TopRightCorner)[source]
Bases:
PySide6.QtWidgets.QFrame
Custom 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
word_wrap (bool) –
corner (Qt.Corner) –
- class spinetoolbox.widgets.notification.ButtonNotification(*args, button_text='', button_slot=None, **kwargs)[source]
Bases:
Notification
A notification with a button.
- 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
word_wrap (bool) –
corner (Qt.Corner) –
- class spinetoolbox.widgets.notification.LinkNotification(*args, open_link=None, **kwargs)[source]
Bases:
Notification
A 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
word_wrap (bool) –
corner (Qt.Corner) –