[pygtk] Minimizing an application to the tray
Alec Hussey
alec.hussey at gmail.com
Thu Nov 8 12:33:37 WST 2007
Yes thats exactly what I wanted to do and Marco (the other guy who
replied to my post) gave two lines of python to do so. Thanks for the
help!
On Wed, 2007-11-07 at 08:21 +0100, François Ingelrest wrote:
> If you want to 'replace' the minimize function, all you have to do is
> to install an handler to catch changes of your window's states. When
> it is minimized, you simply hide it and you create a StatusIcon that
> will automatically appear in the tray area. A StatusIcon also lets you
> catch clicks performed on the tray icon, so upon a click you show the
> window and you remove the StatusIcon from the tray area.
>
> Is that what you want to do?
>
> On Nov 7, 2007 2:28 AM, Alec Hussey <alec.hussey at gmail.com> wrote:
> > 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?
> _______________________________________________
> pygtk mailing list pygtk at daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
--
Alec Hussey
More information about the pygtk
mailing list