text overlay for tray icon
Posted
by
AnC
on Stack Overflow
See other posts from Stack Overflow
or by AnC
Published on 2011-01-16T22:40:16Z
Indexed on
2011/01/16
22:53 UTC
Read the original article
Hit count: 193
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
?
© Stack Overflow or respective owner