Exemplo n.º 1
0
 def prepareMenu(self, menu):
     TrayIcon.prepareMenu(self, menu)
     menu.append(self.createMenuItem(gtk.STOCK_CONNECT, self.onMenuConnect))
Exemplo n.º 2
0
 def __init__(self, service):
     TrayIcon.__init__(self, service)
     self.connect('size-changed', self.onSizeChanged)
     self.percent = 0
     self.icon = IconBar(22, self.percent)