Today I've switched to GNOME (from XFCE) and found some of the cool stuff missing and I would like to (try to) do them on my own. I tried to find information on how to develop Gnome applets (items you place within the panel) and most likely in Python, but it's not a hard limitation.
I found the article 'Gnome applets with Python', but it seems quite old (2004). The first thing mentioned there is bonobo
(whatever it is), but Gnome page on Bonobo discourages it.
Gnome site has a page on applet development, but this one is even older (2003) and incomplete (lot of fixme write
).
What is the current approach then? I wouldn't want to learn something outdated.
Theres an article called Gnome Panel Applets in Python from 2008 on the Ubuntu forums that may help with this.
This includes defining a bonobo component. This Gnome documentation on applet development states that
Technically, applets are Bonobo controls embedded in the Gnome panel
So it looks like that is the correct way to go.
In case anyone else comes across this question, in the forum post linked in Robert Christie's answer a user pointed out that simply using gtk.StatusIcon() is a more portable solution if you're just looking for tray icon functionality (as opposed to say a clock, or main menu applet). Additionally, if you think you need bonobo you should probably be using D-Bus anyways.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With