[python-win32] newby to com and a problem with events
Seth Sims
ssims at spsu.edu
Tue Oct 2 17:48:16 CEST 2007
Ok I have attempted that but with no success. I added:
timeout = time.time() + 30
while time.time() <= timeout:
print 'pumping messages'
pythoncom.PumpWaitingMessages()
time.sleep(0.5)
Aside from the 60 'pump messages' prints the output is unchanged.
As I understand it the fact that msr.AccountNumber contains the account number means that the event has been fired, at least within the OPOS.MSR COM object. The specification states that AccountNumber and a few other properties are set to the blank string when msr.Open is called. They are only changed as part of raising a DataEvent.
That seems to be the behavior that I am seeing; because until that single PumpWaitingMessages the properties remain blank.
-Seth Sims
More information about the python-win32
mailing list