Re: [python-win32] How to correctly handle events using win32com ?

2024-11-30 Thread David Sansom
Hi, > I guess I should send a WM_QUIT message but I don't know how. Have you tried win32api.PostQuitMessage() in the event handler for Code 1? DS Sent from my iPhone > On 29 Nov 2024, at 18:00, Gauthier ABRIAL wrote: > >  > Hello, > I'm looking for some advice on how to correctly handle ev

Re: [python-win32] How to correctly handle events using win32com ?

2024-11-30 Thread David Sansom
OnBeforeClose and also decide what to do when the event is fired. Excel can’t decide that for you.BestDSSent from my iPhoneOn 30 Nov 2024, at 17:28, Gauthier ABRIAL wrote: @David Sansom: amazing that's exactly what I was looking for ! That works now, PumpMessages() is correctly returning when I