ty.
ty.

Reputation: 11132

Setting an appindicator's tooltip in pygtk

I've built an appindicator with a menu using the following code:

self.ind = appindicator.Indicator("my-indicator", "indicator-messages",
                                  appindicator.CATEGORY_APPLICATION_STATUS)
self.ind.set_status(appindicator.STATUS_ACTIVE)
self.ind.set_attention_icon("icon1.png")
self.ind.set_icon("icon2.png")

self.menu = gtk.Menu()
item = gtk.MenuItem("Foo bar")
item.show()
self.menu.append(item)

self.menu.show()
self.ind.set_menu(self.menu)

I want to add a tooltip that shows up when the user hovers over the icon. I think gtk.Tooltip is probably the right thing, but appindicator documentation is sparse. How do I attach a Tooltip to the appindicator?

Ultimately I am looking for this sort of behavior:

appindicator with hover text

Upvotes: 3

Views: 1116

Answers (1)

foudfou
foudfou

Reputation: 1076

AppIndicator do not provide tooltips by design. https://bugs.launchpad.net/indicator-application/+bug/527458

Upvotes: 2

Related Questions