[pygtk] minimize pygtk to tray
Ed Catmur
ed at catmur.co.uk
Fri Mar 16 08:57:00 WST 2007
On Thu, 2007-03-15 at 18:37 +0200, Miki wrote:
> Hi all,
> It is posible to open pygtk application and place it in the system
> tray? and when the user will click on it a popup menu will show him
> some options?
Use gtk.StatusIcon[1] (new in pygtk 2.10), and hide/show the main window
when you receive the "activate" signal; display a popup menu on the
"popup-menu" signal.
> There is different between minimize pygtk application in the KDE
> system tray and GNOME system tray?
No, gtk.StatusIcon supports the f.d.o system tray spec,[2] which is
implemented by both GTK+ and KDE. It also supports the Windows system
tray.
Ed
1. http://www.pygtk.org/docs/pygtk/class-gtkstatusicon.html
2. http://www.freedesktop.org/wiki/Standards/systemtray-spec
More information about the pygtk
mailing list