#!/usr/bin/python

import pynotify
import time

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

    n = pynotify.Notification("Guillotine Example", 
                              "This is a long body.\n"
                              "As evidenced by the long message.\n"
                              "This is the third line.\n")

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

    time.sleep(1)
    print "Hover!"
    time.sleep(.5)

    n.update("Guillotine Exmaple",
             "This is a shorter body.")

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