spinetoolbox.widgets.notification
¶
Contains a notification widget.
author: |
|
---|---|
date: | 12.12.2019 |
Module Contents¶
-
class
spinetoolbox.widgets.notification.
Notification
(parent, txt, anim_duration=500, life_span=2000)[source]¶ Bases:
PySide2.QtWidgets.QWidget
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