Yaklaşık bir ay önce gezegende notify-send hakkında iki[1,2] yazı çıkmıştı. Ben de bu işin python ile nasıl yapılacağını yazayım.
Kısaca notify-send ile ilgili bir örnek vereyim;
]$ notify-send "Deneme" "notify-send ile deneme"
Yukarıda notify-send ile yaptığımızı python ile şu şekilde yaparız;
]$ python
>>> import pynotify
>>> pynotify.init("Deneme")
>>> n = pynotify.Notification("Deneme", "pynotify ile deneme")
>>> n.show()
Eylül 05, 2007
python, pynotify, notify-send
Kaydol:
Kayıt Yorumları (Atom)

0 yorum:
Yorum Gönder