Re: Simple System Tray Icon
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.python archive

Re: Simple System Tray Icon

From: 3c273 <nospam@nospam.com>
Date: Thu Mar 02 2006 - 22:06:53 CET

----quoted----
This is untested, 'cos I'm on a Mac these days, but what you want
should look something like:

from SysTrayIcon import SysTrayIcon
icon = SysTrayIcon('parh/to/icon.ico', "Hover text", {})

How simple do you want?

----/quoted----

I guess I still don't get it. The code you supplied creates an icon and then
hangs.

from SysTrayIcon import SysTrayIcon
icon = SysTrayIcon('PathToMyIcon', "My Application",())
while 1:
    DoStuff()

DoStuff doesn't do happen until I choose 'QUIT' from the icon menu. Any
help? I feel like I'm missing something really fundamental here. Thanks
again.

Louis
Received on Sun Apr 30 10:40:37 2006