[python-win32] How to clear a "dead" icon from system tray?

Tim Roberts timr at probo.com
Thu Apr 10 19:17:08 CEST 2008


Alec Bennett wrote:
> I'm ending task on a process that has a system tray icon, which works but it leaves an icon behind
> in the system tray, which only goes away if I mouse over it. Can anyone think of a way to force a
> refresh of the system tray without mousing over it?
>
> I know this is adding duct tape over duct tape, but the only way I've found to close this program
> from Python is with an (automated) end task.
>   

Mousing over is really the only way.  If you don't get a chance to clean 
up after yourself, no one else can do it.

You're talking about a fairly serious design flaw here.  What is 
preventing you from shutting down in an orderly way?

-- 
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.



More information about the python-win32 mailing list