[python-win32] windows service sample using pyInstaller

2008-04-10 Thread franck34
# Usage: # service.exe install # service.exe start # service.exe stop # service.exe remove # you can see output of this program running python site-packages\win32\lib\win32traceutil import win32service import win32serviceutil import win32event import win32evtlogutil import win32traceutil import s

[python-win32] windows service sample using py2exe

2008-04-10 Thread franck34
# Warning: setup.py require cmdline_style='pywin32' # Usage: # service.exe install # service.exe start # service.exe stop # service.exe remove # you can see output of this program running python site-packages\win32\lib\win32traceutil # setup.py #from distutils.core import setup #import py2exe #

Re: [python-win32] exception while opening excel file

2008-04-10 Thread Mark Hammond
> > Normally I can just press "close" in the excel error box, and > continue > > to work on the file. But how do I handle this in py-win32? > > So what happens when you try to open it normally? Oops - sorry - I see you already gave the exception you get trying to open the file. I'm afraid I don'

[python-win32] holiday

2008-04-10 Thread Mark Hammond
Hi all, FYI, I'm off on a 2 week vacation to China (wh!) and will not be checking email or doing anything else that is even vaguely related to work! I'll catch up when I get back (and pywin32-211 should be *very* close by then - all installer issues are done - I just gotta get Roger to take a

Re: [python-win32] exception while opening excel file

2008-04-10 Thread Mark Hammond
> Normally I can just press "close" in the excel error box, and continue > to work on the file. But how do I handle this in py-win32? So what happens when you try to open it normally? Mark ___ python-win32 mailing list python-win32@python.org http://ma

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

2008-04-10 Thread Alec Bennett
> Interesting. You're saying that the normal > del kb is not enough to clean this up? Whoops, user error. I had declared my com object as global so I could delete it from somewhere else, but forgot to declare it as global before deleting it Works fine now, thanks. And for anyone coming dow

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

2008-04-10 Thread Tim Roberts
Alec Bennett wrote: > >> 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 t

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

2008-04-10 Thread Alec Bennett
> 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 C

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

2008-04-10 Thread Tim Roberts
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

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

2008-04-10 Thread Alec Bennett
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,

[python-win32] exception while opening excel file

2008-04-10 Thread iceblink
Hi all, I'm trying to write a file that does something with excel files. Unfortunately all these files will give an error upon opening: Errors were detected in 'file.xls', but MS Excel was able to open the file by making the repairs listed below. Save the file to make these repairs permanen

Re: [python-win32] win32service problems

2008-04-10 Thread Mark Hammond
> pyInstaller 1.3 with python 2.4 : in the python win32traceutil window, > you can see that when you start the service using "myService.exe > start", myService.exe is launched twice ! That's normal - the first time it is loaded it simply connects to the Service Control Manager and request the serv

[python-win32] win32service problems

2008-04-10 Thread franck34
Hi the list, I'm on a problem since 2 days now and i don't know where to continu to investigate ... notice i've started python 2 month ago and honestly, i don't know if my problem is pywin32, or py2exe, or pyInstaller (same behavior) or simply my code. The problem is that i don't have any luck to