home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac Easy 2010 May
/
Mac Life Ubuntu.iso
/
casper
/
filesystem.squashfs
/
usr
/
share
/
doc
/
python-notify
/
examples
/
test-basic.py
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Python Source
|
2006-04-25
|
327 b
|
17 lines
#!/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)