File: test-markup.py

package info (click to toggle)
notify-python 0.1.1-3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,516 kB
  • sloc: sh: 8,496; ansic: 622; python: 255; makefile: 110
file content (18 lines) | stat: -rwxr-xr-x 420 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/env python

import pygtk
pygtk.require('2.0')
import pynotify
import sys

if __name__ == '__main__':
    if not pynotify.init("Markup"):
        sys.exit(1)

    n = pynotify.Notification("Summary",
        "Some <b>bold</b>, <u>underlined</u>, <i>italic</i>, " +
        "<a href='http://www.google.com'>linked</a> text")

    if not n.show():
        print "Failed to send notification"
        sys.exit(1)