I'm surprised to see that there is not a lot of explained documentation on the function pythoncom.PumpMessages()
, or for the pythoncom
module.
So what does pythoncom.PumpMessages()
and pythoncom.PumpWaitingMessages()
do and how? All I really know about it is used for catching events from input devices.
PumpMessages: Pumps all messages for the current thread until a WM_QUIT message.
The Python for Windows extensions also include excellent support for the Microsoft Component Object Model (COM). COM is a technology that allows you to use “objects” from your favorite language, even if the object isn't implemented in your language.
The documentation on these methods can be found here.
The relevant bits are:
- PumpWaitingMessages: Pumps all waiting messages for the current thread.
- PumpMessages: Pumps all messages for the current thread until a WM_QUIT message.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With