Package AccessEngine :: Package AEAccAdapters :: Package ATSPI :: Module DefaultEventHandler
[hide private]
[frames] | no frames]

Module DefaultEventHandler

source code

Defines default AEAccAdapter.AEAccAdapters for the AEAccInterfaces.IEventHandler interface on pyatspi.Accessibility.Accessible objects.


Authors:
Pete Brunet, Peter Parente, Brett Clippingdale, Frank Zenker
Organizations: Copyright: License:
Classes [hide private]
  DefaultEventHandlerAdapter
Adapts all events from AT-SPI accessibles to the interfaces defined in provides.
Variables [hide private]
dictionary AE_MAP = {ViewChange: ['window:activate', 'window:deactivate',...
Mapping from AEEvents to raw events that must be registered to generate them
dictionary EVENT_HANDLERS = {'keyboard:press': '_handleKeyPressEvent', 'w...
Maps event names to method names to be called to handle them
Variables Details [hide private]

AE_MAP

Mapping from AEEvents to raw events that must be registered to generate them
Type:
dictionary
Value:
{ViewChange: ['window:activate', 'window:deactivate', 'window:create',\
 'window:destroy'], FocusChange: ['focus', 'object:state-changed:focus\
ed'], CaretChange: ['object:text-caret-moved', 'object:text-changed'],\
 ChildrenChange: ['object:children-changed'], PropertyChange: ['object\
:property-change'], SelectorChange: ['object:text-selection-changed', \
'object:selection-changed', 'object:active-descendant-changed'], State\
Change: ['object:state-changed:expanded', 'object:state-changed:checke\
d', 'object:state-changed:enabled', 'object:state-changed:sensitive', \
...

EVENT_HANDLERS

Maps event names to method names to be called to handle them
Type:
dictionary
Value:
{'keyboard:press': '_handleKeyPressEvent', 'window:activate': '_handle\
ViewChange', 'focus': '_handleFocusEvent', 'object:state-changed:focus\
ed': '_handleFocusEvent', 'object:text-changed:insert': '_handleTextEv\
ent', 'object:text-changed:delete': '_handleTextEvent', 'object:text-c\
aret-moved': '_handleCaretEvent', 'object:text-selection-changed': '_h\
andleTextSelectionEvent', 'object:selection-changed': '_handleSelectio\
nChangedEvent', 'object:active-descendant-changed': '_handleDescendant\
Event', 'object:property-change:accessible-name': '_handlePropertyEven\
...