def run(self): global _isPumpPending _isPumpPending = False # print("pumpujuuu") watchdog.alive() try: # if touchHandler.handler: # touchHandler.handler.pump() JABHandler.pumpAll() # IAccessibleHandler.pumpAll() queueHandler.pumpAll() # mouseHandler.pumpAll() # braille.pumpAll() # vision.pumpAll() except Exception as e: print("errors in this core pump cycle", e) # raise # baseObject.AutoPropertyObject.invalidateCaches() # print("spinkam") watchdog.asleep() # print("vstalsem") if _isPumpPending and not _pump.IsRunning(): # #3803: Another pump was requested during this pump execution. # As our pump is not re-entrant, schedule another pump. _pump.Start(PUMP_MAX_DELAY, True)
def Notify(self): try: JABHandler.pumpAll() IAccessibleHandler.pumpAll() queueHandler.pumpAll() mouseHandler.pumpAll() except: log.exception("errors in this core pump cycle") baseObject.AutoPropertyObject.invalidateCaches() watchdog.alive()
def Notify(self): try: JABHandler.pumpAll() IAccessibleHandler.pumpAll() queueHandler.pumpAll() mouseHandler.pumpAll() braille.pumpAll() except: log.exception("errors in this core pump cycle") baseObject.AutoPropertyObject.invalidateCaches() watchdog.alive()
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 run(self): global _isPumpPending _isPumpPending = False watchdog.alive() try: if touchHandler.handler: touchHandler.handler.pump() JABHandler.pumpAll() IAccessibleHandler.pumpAll() queueHandler.pumpAll() mouseHandler.pumpAll() braille.pumpAll() except: log.exception("errors in this core pump cycle") baseObject.AutoPropertyObject.invalidateCaches() watchdog.asleep() if _isPumpPending and not _pump.IsRunning(): # #3803: Another pump was requested during this pump execution. # As our pump is not re-entrant, schedule another pump. _pump.Start(PUMP_MAX_DELAY, True)
def Notify(self): global _isPumpPending _isPumpPending = False watchdog.alive() try: if touchHandler.handler: touchHandler.handler.pump() JABHandler.pumpAll() IAccessibleHandler.pumpAll() queueHandler.pumpAll() mouseHandler.pumpAll() braille.pumpAll() except: log.exception("errors in this core pump cycle") baseObject.AutoPropertyObject.invalidateCaches() watchdog.asleep() if _isPumpPending and not _pump.IsRunning(): # #3803: A pump was requested, but the timer was ignored by a modal loop # because timers aren't re-entrant. # Therefore, schedule another pump. _pump.Start(PUMP_MAX_DELAY, True)