Larry Bates wrote: > Please accept my apology for hijacking this thread, but it is exactly > what I want to implement. I have a COM object that is doing an upload. > I want a system tray icon that: > > 1) Shows a heartbeat (upload progress indicator) > 2) Provides the user with a way to cancel the upload > > I found systrayicon.py and it almost does what I want. I thought > about using socket server/client to have the two apps communicate > but I'm at a complete loss as to how to implement socket client > in the systrayicon.py program since it uses PumpMessages. I just > don't see how to connect to my com server (which would also be > a socket server) inside some loop mechanism.
Since I assume you're not looking for cross-platform portability here, I'd be inclined to use one of Windows' built-in mechanisms: Events, Pipes, Messages etc. They should mesh with a suitable message loop, eg: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/82236 TJG _______________________________________________ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32