Howto do Notification from python.

sean seanlkml at sympatico.ca
Wed Jan 25 14:38:11 UTC 2006


On Wed, 25 Jan 2006 15:28:55 -0500
Tim Lauridsen <tla-ml at rasmil.dk> wrote:

> I want to make Notification to popup for a moment of time and then
> disapear for a Python / pyGTK application (yumex)
> 
> Like when runs this command in a console. (in Rawhide)
> 
> notify-send -i gtk-dialog-info "Title" "Message"

I don't see any python bindings, but the simple:
 
  import os
  os.execlp('notify-send', '-i gtk-dialog-info', 'Title', 'Message')

should do what you want.


Seam




More information about the fedora-devel-list mailing list