views:

25

answers:

1

I have a Gnome applet I've been working on. It is written in Python and it displays the progress of something in a small label.

My question is: what is the best way to display status notifications to the user? On Ubuntu, I notice that whenever I connect to a network or adjust the volume, a black box appears in the upper-right corner. Is there a way to do something like that with Python?

+2  A: 

You can use pynotify, there isn't much documentation but it's usage is pretty straightforward. Example:

import pynotify    
pynotify.Notification ("WiFi connection lost","","notification-network-wireless-disconnected")

See also: https://wiki.ubuntu.com/NotificationDevelopmentGuidelines

freyrs
+1 Use Notify OSD
Pascal Thivent
**Exactly** what I was looking for. Thanks so much.
George Edison