PyCWinThread
.PumpMessages
PumpMessages(
)
Pumps all messages to the application until a WM_QUIT message is received.
Comments
This allows an application which is performing a long operation to dispatch paint messages during the operation.