[python-win32] creating a Word AddIn based on the Excel one

2008-03-31 Thread Kieran Martin
I tried to create a really basic Word AddIn based on the Excel example (which works fine for me). I've pasted the code below. Apologies for my general ignorance - I've trolled the Archives looking for something close but no dice. I've had luck making an Excel AddIns in the past and can make

Re: [python-win32] Threads in COM not given time to execute?

2008-03-31 Thread Marcus Low
Hi, Found the reason. The COM component in this case somehow depends on the windows message pump. while FlagToStop == False : win32gui.PumpMessages(); Solved the issue. Marcus. - Original Message - From: Marcus Low To: 'Python-Win32 List' Sent: Monday, March 31

[python-win32] Threads in COM not given time to execute?

2008-03-31 Thread Marcus Low
Hi, I am testing a COM component, when i execute it under pythonwin idle and single stepping F10 to "SmtpMail.Start()" : SmtpMail = win32com.client.Dispatch("SomeSMTPCom") SmtpMail.Start() I can telnet to 127.0.0.1 25 and get a proper SMTP response But when i run the program i