Une classe pour afficher des notifications à l'écran. Plus de détails...
Fonctions membres publiques | |
| def | __init__ |
| Le constructeur. Plus de détails... | |
| def | notify (self) |
Attributs publics | |
| app_name | |
| replaces_id | |
| app_icon | |
| summary | |
| body | |
| actions | |
| hints | |
| expire_timeout | |
| interface | |
Une classe pour afficher des notifications à l'écran.
Doit fonctionner avec tous les gestionnaires de bureau qui adhèrent aux standards de freedesktop.org. Cette classe est basée sur la documentation disponible à http://www.galago-project.org/specs/notification/0.9/x408.html
Définition à la ligne 36 du fichier notification.py.
| def src.notification.Notification.__init__ | ( | self, | |
app_name = "", |
|||
replaces_id = 0, |
|||
app_icon = "", |
|||
summary = "", |
|||
body = "", |
|||
actions = [], |
|||
hints = {}, |
|||
expire_timeout = 1000 |
|||
| ) |
Le constructeur.
| app_name | nom d'une application, valeur par défaut ="" |
| replaces_id | identifiant d'une notification à remplacer valeur par défaut=0 |
| app_icon | nom d'un fichier servant pour l'icône valeur par défaut="" |
| summary | description brève de la notification valeur par défaut ="" |
| body | le texte de la notification, valeur pa défaut="" |
| actions | une liste de paires représeantant des actions, valeur par défaut=[] |
| hints | un dictionnaire de suggestions, valeur par défaut={}, |
| expire_timeout | durée maximale d'affichage en millisecondes, valeur par défaut=1000 |
Définition à la ligne 52 du fichier notification.py.
| def src.notification.Notification.notify | ( | self | ) |
Définition à la ligne 69 du fichier notification.py.
| src.notification.Notification.actions |
Définition à la ligne 58 du fichier notification.py.
| src.notification.Notification.app_icon |
Définition à la ligne 55 du fichier notification.py.
| src.notification.Notification.app_name |
Définition à la ligne 53 du fichier notification.py.
| src.notification.Notification.body |
Définition à la ligne 57 du fichier notification.py.
| src.notification.Notification.expire_timeout |
Définition à la ligne 60 du fichier notification.py.
| src.notification.Notification.hints |
Définition à la ligne 59 du fichier notification.py.
| src.notification.Notification.interface |
Définition à la ligne 65 du fichier notification.py.
| src.notification.Notification.replaces_id |
Définition à la ligne 54 du fichier notification.py.
| src.notification.Notification.summary |
Définition à la ligne 56 du fichier notification.py.