win32event.MsgWaitForMultipleObjects
int = MsgWaitForMultipleObjects(handleList, bWaitAll , milliseconds , wakeMask )
Returns when a message arrives of an event is signalled
Parameters
Comments
Note that if bWaitAll is TRUE, the function will return when there is input in the queue, and all events are signalled. This is rarely what you want! If input is waiting, the result is win32event.WAIT_OBJECT_0+len(handles))