[python-win32] How to clear a "dead" icon from system tray?
Alec Bennett
whatyoulookin at yahoo.com
Thu Apr 10 19:44:00 CEST 2008
> You're talking about a fairly serious design flaw here.
Agreed.
> What is preventing you from shutting down in an orderly way?
I'm controlling an onscreen keyboard through a Com interface and when I attempt to close it I get
a Com Server error telling me there are still connections to the Com object, am I sure I want to
close it? I found a method to show references to the Com object and it would always show 2
references, but I forgot what that code is so I can't repeat it.
Here's how I'm launching my Com object:
import win32com.client
kb = win32com.client.Dispatch("Kbd.mfSoftkeys")
kb.LoadKeyboard("keyboard_file.kbd")
--- Tim Roberts <timr at probo.com> wrote:
> 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.
>
> _______________________________________________
> python-win32 mailing list
> python-win32 at python.org
> http://mail.python.org/mailman/listinfo/python-win32
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the python-win32
mailing list