MCPcopy Create free account
hub / github.com/mhammond/pywin32 / ui_thread_pump_messages

Function ui_thread_pump_messages

Pythonwin/win32thread.cpp:304–316  ·  view source on GitHub ↗

@pymethod |PyCWinThread|PumpMessages|Pumps all messages to the application until a WM_QUIT message is received.

Source from the content-addressed store, hash-verified

302
303// @pymethod |PyCWinThread|PumpMessages|Pumps all messages to the application until a WM_QUIT message is received.
304static PyObject *
305ui_thread_pump_messages(PyObject *self, PyObject *args)
306{
307 if (!PyArg_ParseTuple (args, ":PumpMessages"))
308 return NULL;
309 CProtectedWinThread *pThread = GetProtectedThread();
310 if (!pThread) return NULL;
311 GUI_BGN_SAVE;
312 pThread->PumpMessages();
313 GUI_END_SAVE;
314 RETURN_NONE;
315 // @comm This allows an application which is performing a long operation to dispatch paint messages during the operation.
316}
317
318
319// @object PyCWinThread|An application class. Encapsulates an MFC <c CWinThread> class

Callers

nothing calls this directly

Calls 2

GetProtectedThreadFunction · 0.85
PumpMessagesMethod · 0.80

Tested by

no test coverage detected