def processPendingEvents(processEventQueue=True): # Import late to avoid circular import. import IAccessibleHandler import JABHandler import wx import queueHandler watchdog.alive() wx.Yield() JABHandler.pumpAll() IAccessibleHandler.pumpAll() import baseObject baseObject.AutoPropertyObject.invalidateCaches() if processEventQueue: queueHandler.flushQueue(queueHandler.eventQueue)
def pumpAll(): if isRunning: queueHandler.flushQueue(internalFunctionQueue)