After initializing your notification object (like you did), use:
Code:
n.set_timeout(10000)
time is in milliseconds.
You may also be interested in experimenting with the following:
Set urgency:
Code:
n.set_urgency(pynotify.URGENCY_LOW)
n.set_urgency(pynotify.URGENCY_NORMAL)
n.set_urgency(pynotify.URGENCY_CRITICAL)
Set icon:
Code:
icon = helper.render_icon(gtk.STOCK_DIALOG_QUESTION, gtk.ICON_SIZE_DIALOG)
n.set_icon_from_pixbuf(icon)
The pynotify api documentation is close to non-existent. I ran through similar problems a few weeks ago. Good Luck
Bookmarks