Re: [python-win32] DispatchWithEvents design question

2007-06-05 Thread Mark Hammond
> In casting around for a solution I poked into the code for > DispatchWithEvents. If I understand it correctly, it is > possible to include > IE automation methods as part of the event class something like this: > > class Yie: > --- class variables --- > def __init__(self): > ---

Re: [python-win32] DispatchWithEvents design question

2007-06-05 Thread Richard Bell
Thanks Tim. If PumpWaitingMessages is queued AND messages can only occur when PumpWaitingMessages is called, then Questions 2 and 3 are resolved since absent the call to PumpWaitingMessages events can not occur. I am still a bit concerned, however, because of an experiment I ran several days

Re: [python-win32] DispatchWithEvents design question

2007-06-05 Thread Tim Roberts
Richard Bell wrote: > Question 3: Does PumpWaitingMessages insure that at MOST one message/event > is pumped such that reentrancy is not an issue? > I can't answer the other two questions, but I can answer this one, definitively yes. A Windows message queue is associated with a single thread o

[python-win32] DispatchWithEvents design question

2007-06-05 Thread Richard Bell
I'm continuing to work on a class to automate IE in an apartment-threaded early binding class. The current design is relatively conventional and looks like this: class Yie(object): def __init__(self, eventClass): --- code deleted --- self._ie = win32com.client.DispatchWithEv