Re: [python-win32] Capturing stdout when running a Python Script

2006-10-27 Thread David Nicolson
This might do what you want to achieve. It seems to make py2exe crash on exit, some file locking error. Works fine otherwise though. #!/usr/bin/env python import sys class LogBuffer: def __init__(self): pass def flush(self): sys.__stdout__.flush() def write(s

Re: [python-win32] iTunes 7 vs Juice: ugly!

2006-09-14 Thread David Nicolson
Hi Garth, I've been developing a py2exe app that dispatches a COM object since iTunes 4 and I've seen this problem a bit. I'm not exactly sure what causes it, I think in certain circumstances the iTunes installer can fail to register the type library. Reinstalling iTunes usually solves the

[python-win32] Python COM and IUnknown

2006-05-23 Thread David Nicolson
Hi, I have a win32com application that dispatches a COM object, using late or early binding and with events using win32com.client.WithEvents. The application that is dispatched to sends an event when it is quitting, leaving time for the client to disconnect from the COM server. When this ev

[python-win32] win32com.client.GetActiveObject()

2005-09-18 Thread David Nicolson
Hi, I have been successfully using iTunes' COM interface with Python using either of the following lines: iTunes = win32com.client.gencache.EnsureDispatch("iTunes.Application") iTunes = win32com.client.Dispatch("iTunes.Application") The only problem is that it will launch iTunes if it is not run