def interruptwait():
    """
    If waituntil() has been called, this will interrupt the waiting process so
    it can check whether it should stop waiting.
    """
    evt = NSEvent.otherEventWithType_location_modifierFlags_timestamp_windowNumber_context_subtype_data1_data2_(NSApplicationDefined, NSPoint(), NSApplicationDefined, 0, 1, None, LIGHTBLUE_NOTIFY_ID, 0, 0)
    NSApplication.sharedApplication().postEvent_atStart_(evt, True)
def interruptwait ( ) : evt = NSEvent . otherEventWithType_location_modifierFlags_timestamp_windowNumber_context_subtype_data1_data2_ ( NSApplicationDefined , NSPoint ( ) , NSApplicationDefined , 0 , 1 , None , LIGHTBLUE_NOTIFY_ID , 0 , 0 ) NSApplication . sharedApplication ( ) . postEvent_atStart_ ( evt , True )
If waituntil() has been called, this will interrupt the waiting process so
    it can check whether it should stop waiting.