Re: [python-win32] Dispatches With Events on COM Object

2006-08-03 Thread Mark Hammond
print dir(mod) ob = mod.Application Try adding parens after that line - currently 'ob' is the class, where you want an instance of the class. ob = mod.Application() That may get closer. Mark ___ Python-win32 mailing list Python-win32@python.org

[python-win32] sleep() for less than .001s?

2006-08-03 Thread Ray Schumacher
I have been trying to use sleep() and kernel32.QueryPerformanceCounter together; I want to delay until a particular tick without trying up the CPU badly. However, while time.sleep(.001) relieves the CPU, it has wildly unpredictable delay, and sleep(.0001) delays almost nothing at all! (I'm