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-markup.py < prev    next >
Encoding:
Python Source  |  2006-04-25  |  420 b   |  19 lines

  1. #!/usr/bin/env python
  2.  
  3. import pygtk
  4. pygtk.require('2.0')
  5. import pynotify
  6. import sys
  7.  
  8. if __name__ == '__main__':
  9.     if not pynotify.init("Markup"):
  10.         sys.exit(1)
  11.  
  12.     n = pynotify.Notification("Summary",
  13.         "Some <b>bold</b>, <u>underlined</u>, <i>italic</i>, " +
  14.         "<a href='http://www.google.com'>linked</a> text")
  15.  
  16.     if not n.show():
  17.         print "Failed to send notification"
  18.         sys.exit(1)
  19.