[pygtk] Minimizing an application to the tray

Alec Hussey alec.hussey at gmail.com
Wed Nov 7 10:28:51 WST 2007


Hello all,

I am developing an application where I would like to have the main
window minimized to the system tray or notification area. Except, I
haven't been able to find much information on how to do this. I found
gtk.StatusIcon in the PyGTK docs however I'm not sure how exactly I
would be able to integrate this into my Window's actions. Because I want
to keep the applications current state, but simply hide the window and
keep a tray icon in its place. Then when the user wants to use the
application again they can just click on the icon in the tray.

What's going to be the simplest way I can accomplish this? And how do
you suggest I should do it?

Thanks!
-- 
Alec Hussey



More information about the pygtk mailing list