pythoncom
.PumpMessages
PumpMessages(
)
Pumps all messages for the current thread until a WM_QUIT message.