spinetoolbox.widgets.notification
¶
Contains a notification widget.
- author
Savolainen (VTT)
- date
12.12.2019
Module Contents¶
Classes¶
Custom pop-up notification widget with fade-in and fade-out effect. |
|
A notification that doesn’t dissapear when the cursor is on it. |
|
A notification with a button. |
|
A notification that may have a link. |
|
|
- class spinetoolbox.widgets.notification.Notification(parent, txt, anim_duration=500, life_span=None, word_wrap=True, corner=Qt.TopRightCorner)[source]¶
Bases:
PySide2.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.InteractiveNotification(parent, txt, anim_duration=500, life_span=None, word_wrap=True, corner=Qt.TopRightCorner)[source]¶
Bases:
Notification
A notification that doesn’t dissapear when the cursor is on it.
- 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:
InteractiveNotification
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:
InteractiveNotification
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) –
- class spinetoolbox.widgets.notification.NotificationStack(parent, anim_duration=500, life_span=None)[source]¶
Bases:
PySide2.QtCore.QObject