pygtk.require('2.0')
import gtk
import egg.trayicon
t = egg.trayicon.TrayIcon('MyFirstTrayIcon')
t.add(gtk.Label('Hello'))
t.show_all()
gtk.main()
How to write an application for the system tray in Linux