Conversation started Jan 12, 2014 at 3:51.
Jan 12, 2014 03:51
what I'm getting at is prettifying Jono's code, I get something like this:
#!/usr/bin/env python

from gi.repository import Gtk
from gi.repository import AppIndicator3 as appindicator

def menuitem_response(w, buf):
    print buf

'''
This should be called menuItems or something, not indicatorWidget...
but since a true indicatorwidget sub-classable isn't exposed, this is
the ugly we get.
'''

class indicatorWidget(Gtk.Menu):
    def __init__(self):
      Gtk.Menu.__init__(self)
          for i in range(3):
              buf = "Test-undermenu - %d" % i

              menu_items = Gtk.MenuItem(buf)
intresting
it reads better... but it's like trying to perform brain surgery with chopsticks. it's ugly.
my indentation is wrong still, but you get the point... i think
still wish it was a built-in thing, where just one major desktop does things totally diffrent
me too
if appindicator was ready for production, there would be a subclassable indicator widget so you could just say:
indicator_menus = indicatorWidget()
my_indicator = appindicator.indicator(indicator_menus)
Gtk.main()
wouldn't that be pretty pythonic code? i think so
 
Conversation ended Jan 12, 2014 at 3:59.