http://stackoverflow.com/questions/1635027/whats-the-simplest-cross-platform-way-to-pop-up-graphical-dialogs-in-python
http://stackoverflow.com/questions/6389580/quick-and-easy-trayicon-with-python
#Command Line: notify-send -t 900 "Title" "Message"
#Script:
#Script:
import pynotify
# Only Text Notification
pynotify.init('Basic')
pynotify.Notification("Title", "simple text").show()
# Lets try with an image
pynotify.init('Image')
## Use absolute Path of the photo
pynotify.Notification("Title", "My Photo here!!", "/home/nafis/Pictures/me.png").show()
# Try Markup
pynotify.init("markup") ## all smallerCase "markup"
# but in parameter, first letter capital
pynotify.Notification("Markup",
'''
<b>bold</b>, <i>italic</i>, <u>underline</u>
and even <a href="http://google.com">links</a> are supported!
'''
).show()
No comments:
Post a Comment