14
rated 0 times
[
14]
[
0]
/ answers: 1 / hits: 3835
/ 9 Months ago, mon, january 9, 2023, 11:03:40
How do I get the strings I can insert instead of 'gtk-execute'?
#!/usr/bin/python
import gobject
import gtk
import appindicator
if __name__ == "__main__":
ind = appindicator.Indicator("example-simple-client", "gtk-execute",
appindicator.CATEGORY_APPLICATION_STATUS)
ind.set_status (appindicator.STATUS_ACTIVE)
menu = gtk.Menu()
for i in range(3):
buf = "Test-undermenu - %d" % i
menu_items = gtk.MenuItem(buf)
menu.append(menu_items)
menu_items.connect("activate", gtk.main_quit)
menu_items.show()
ind.set_menu(menu)
gtk.main()
My answer below pretty much does it. Still it would be nice to have some python code that puts out all available icons.
More From » indicator