#!/usr/bin/python
# -*- coding: utf-8 -*-
import time
from gi.repository import GLib
from gi.repository import Notify
Notify.init('Test Application')

widget = Notify.Notification.new(u"SUM", u"BOD", None)
widget.set_timeout(12 * 1000)

widget.show()
time_start = time.time()
print("time_start = %s" % time_start)

main_loop = GLib.MainLoop()

try:
    main_loop.run()
except KeyboardInterrupt as exc:
    print("interrupted! %f" % (time.time() - time_start))
    raise SystemExit
