Unfortunately, that doesn't work:
I tried adding:
ind.set_label("This is a test!")
to my example, but I get the following error:
ind.set_label("This is a test!") AttributeError:
'appindicator.Indicator' object has no attribute 'set_label'
...and it fails to load.
- Nathan
> Date: Sun, 10 Oct 2010 12:48:10 +0200
> Subject: Re: [Ayatana-dev] Questions about AppIndicators
> From: [email protected]
> To: [email protected]
> CC: [email protected]
>
> On 10 October 2010 03:55, Nathan <[email protected]> wrote:
> > I have recently ported an application to use AppIndicators[1]. (Before
> > this, it was a Gnome panel applet.)
> >
> > During the process of converting the application (which is written in
> > Python), I ran into a couple problems / questions about how
> > AppIndicators work or how to use a certain feature.
> >
> > 1. How do you display text beside the AppIndicator? I tried looking
> > through the documentation - only to discover that there is none. (At
> > least, none for Python.)
>
> You can do that with the set_label() method, a member of the
> AppIndicator object.
>
> >
> > 2. There seems to be a glitch when menus with images are added to the
> > menu. I made an example[2] that reproduced the problem. Stock GTK icons
> > show up, but not custom images.
> >
> > - Nathan
> >
> > [1]: http://launchpad.net/stackapplet
> > [2]: http://pastebin.com/mtwmG0jn
> >
> >
> > _______________________________________________
> > Mailing list: https://launchpad.net/~ayatana-dev
> > Post to : [email protected]
> > Unsubscribe : https://launchpad.net/~ayatana-dev
> > More help : https://help.launchpad.net/ListHelp
> >
>
>
>
> --
> Sense Hofstede
> http://sensehofstede.nl/
_______________________________________________
Mailing list: https://launchpad.net/~ayatana-dev
Post to : [email protected]
Unsubscribe : https://launchpad.net/~ayatana-dev
More help : https://help.launchpad.net/ListHelp