Module eventHandler
[hide private]
[frames] | no frames]

Module eventHandler

source code

Classes [hide private]
  _EventExecuter
Facilitates execution of a chain of event functions.
Functions [hide private]
 
queueEvent(eventName, obj, **kwargs)
Queues an NVDA event to be executed.
source code
 
_queueEventCallback(eventName, obj, kwargs) source code
boolean
isPendingEvents(eventName=None, obj=None)
Are there currently any events queued?
source code
 
executeEvent(eventName, obj, **kwargs)
Executes an NVDA event.
source code
 
doPreGainFocus(obj, sleepMode=False) source code
 
doPreDocumentLoadComplete(obj) source code
Variables [hide private]
  _pendingEventCountsByName = {}
  _pendingEventCountsByObj = {}
  _pendingEventCountsByNameAndObj = {}
  lastQueuedFocusObject = None
hash(x)
Function Details [hide private]

queueEvent(eventName, obj, **kwargs)

source code 

Queues an NVDA event to be executed.

Parameters:
  • eventName (string) - the name of the event type (e.g. 'gainFocus', 'nameChange')

isPendingEvents(eventName=None, obj=None)

source code 

Are there currently any events queued?

Parameters:
  • eventName (string) - an optional name of an event type. If given then only if there are events of this type queued will it return True.
  • obj (NVDAObjects.NVDAObject) - the NVDAObject the event is for
Returns: boolean
True if there are events queued, False otherwise.

executeEvent(eventName, obj, **kwargs)

source code 

Executes an NVDA event.

Parameters:
  • eventName (string) - the name of the event type (e.g. 'gainFocus', 'nameChange')
  • obj (NVDAObjects.NVDAObject) - the object the event is for
  • kwargs - Additional event parameters as keyword arguments.