File: test-basic.py

package info (click to toggle)
notify-python 0.1.0-2.1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,484 kB
  • ctags: 96
  • sloc: sh: 8,494; ansic: 608; python: 255; makefile: 67
file content (16 lines) | stat: -rwxr-xr-x 327 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/env python

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

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

    n = pynotify.Notification("Summary", "This is some sample content")

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