#!/usr/bin/env python
import notify2
icon = "gtk-ok"
time_out = 5000
title = "Mensaje de prueba"
description = "Este es un mensaje enviado desde Python con notify2"
try:
notify2.init("wee-notifier")
wn = notify2.Notification(title, description, icon)
wn.set_urgency(notify2.URGENCY_CRITICAL)
wn.set_timeout(time_out)
wn.show()
except Exception as error:
print('', 'notify2: {0}'.format(error))
No hay comentarios
https://www.lawebdelprogramador.com/codigo/Python/5270-Enviar-notificaciones-con-dbus.html