[python-win32] Pythonwin COM problem

2005-06-15 Thread Bielik, Robert
I have a module where I use COM to communicate with some HW drivers. In my module I use CoInitializeEx to init COM in multithreaded mode. However, when I use PythonWin to debug/test my module, I get an error due to the fact that PythonWin has (implicitly) initialized COM in apartment threaded mo

[python-win32] Excel automation

2005-06-15 Thread Peter Jessop
Tim Thanks again for clearing that up. Now I get it! Regards Peter ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Excel automation

2005-06-15 Thread Tim Golden
[Peter Jessop] | Hi Tim | Thanks for your quick response. | I had determined that putting none zero values did not provoke the | error, but did not realise the reason. | However c.Offset (2, 2) should change the active cell (1 down and 1 | right, if it is 1-based), but it doesn't | | Regards | |

[python-win32] Excel automation

2005-06-15 Thread Peter Jessop
Hi Tim Thanks for your quick response. I had determined that putting none zero values did not provoke the error, but did not realise the reason. However c.Offset (2, 2) should change the active cell (1 down and 1 right, if it is 1-based), but it doesn't Regards Peter

Re: [python-win32] Excel automation

2005-06-15 Thread Tim Golden
[Peter Jessop] | Running python 2.4.1 with pywin32-204 (2.4) | I am new to Python so this is probably an oversite on my part. | We are evaluating Python with the idea of replacing VBScript for | system administration. | I have been impressed with the capabilities of Python and in general | have fou

[python-win32] Excel automation

2005-06-15 Thread Peter Jessop
Running python 2.4.1 with pywin32-204 (2.4) I am new to Python so this is probably an oversite on my part. We are evaluating Python with the idea of replacing VBScript for system administration. I have been impressed with the capabilities of Python and in general have found it easy to pick up. Enco

Re: [python-win32] run external program but with timeout

2005-06-15 Thread Justin Ezequiel
On 6/15/05, Justin Ezequiel <[EMAIL PROTECTED]> wrote: > > I want to run an executable but I need to be able to kill it if > it has not completed after 5 or so minutes. > Forgive me. Just now found a Demos folder and a winprocess.py file that at first glance will be exactly what I need.

[python-win32] run external program but with timeout

2005-06-15 Thread Justin Ezequiel
Greetings, I want to run an executable but I need to be able to kill it if it has not completed after 5 or so minutes. Googling gets me signal.signal(signal.SIGALRM, handler) but I need to use this from Windows. I have Python 2.3.4 on WinXP Pro. Had a look at the Python for Windows Documentati