text overlay for tray icon
- by AnC
I have a simple tray icon using PyGTK's gtk.StatusIcon:
import pygtk
pygtk.require('2.0')
import gtk
statusIcon = gtk.StatusIcon()
statusIcon.set_from_stock(gtk.STOCK_EDIT)
statusIcon.set_tooltip('Hello World')
statusIcon.set_visible(True)
gtk.main()
How can I add a text label (one or two characters; basically, unread count) to the tooltip - without creating separate images for set_from_file?