Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python - pythoncom.PumpMessages()

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.

like image 770
user3818650 Avatar asked Jun 07 '15 09:06

user3818650


People also ask

What is Pythoncom PumpMessages ()?

PumpMessages: Pumps all messages for the current thread until a WM_QUIT message.

What is Pythoncom module?

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.


1 Answers

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.
like image 157
da Vinci Avatar answered Sep 22 '22 23:09

da Vinci