Package pyLinAcc :: Module Constants
[hide private]
[frames] | no frames]

Module Constants

source code

Defines constants used throughout pyLinAcc.


Authors:
Peter Parente, Pete Brunet

Organization: IBM Corporation

Copyright: Copyright (c) 2005, 2007 IBM Corporation

License: The BSD License

All rights reserved. This program and the accompanying materials are made available under the terms of the BSD license which accompanies this distribution, and is available at http://www.opensource.org/licenses/bsd-license.php

Variables [hide private]
  DEVICEEVENT_LISTENER_IDL = 'IDL:Accessibility/DeviceEventListe...
  EVENT_LISTENER_IDL = 'IDL:Accessibility/EventListener:1.0'
  ACTION_IDL = 'IDL:Accessibility/Action:1.0'
  ACCESSIBLE_IDL = 'IDL:Accessibility/Accessible:1.0'
  APPLICATION_IDL = 'IDL:Accessibility/Application:1.0'
  COLLECTION_IDL = 'IDL:Accessibility/Collection:1.0'
  COMPONENT_IDL = 'IDL:Accessibility/Component:1.0'
  DESKTOP_IDL = 'IDL:Accessibility/Desktop:1.0'
  DOCUMENT_IDL = 'IDL:Accessibility/Document:1.0'
  EDITABLE_TEXT_IDL = 'IDL:Accessibility/EditableText:1.0'
  HYPERLINK_IDL = 'IDL:Accessibility/Hyperlink:1.0'
  HYPERTEXT_IDL = 'IDL:Accessibility/Hypertext:1.0'
  IMAGE_IDL = 'IDL:Accessibility/Image:1.0'
  LOGIN_HELPER_IDL = 'IDL:Accessibility/LoginHelper:1.0'
  STREAMABLE_CONTENT_IDL = 'IDL:Accessibility/StreamableContent:...
  TABLE_IDL = 'IDL:Accessibility/Table:1.0'
  TEXT_IDL = 'IDL:Accessibility/Text:1.0'
  VALUE_IDL = 'IDL:Accessibility/Value:1.0'
  SELECTION_IDL = 'IDL:Accessibility/Selection:1.0'
  DESKTOP_COORDS = 0
  WINDOW_COORDS = 1
  name_to_device_type = {'keyboard:release': Accessibility.KEY_R...
  device_type_to_name = {Accessibility.KEY_RELEASED: 'keyboard:r...
  CORBAException = ORBit.CORBA.Exception
  SystemException = ORBit.CORBA.SystemException
  UserException = ORBit.CORBA.UserException
  NotImplemented = ORBit.CORBA.NO_IMPLEMENT
  CommFailure = ORBit.CORBA.COMM_FAILURE
  NotExist = ORBit.CORBA.OBJECT_NOT_EXIST
  event_tree = {'terminal': ['terminal:line-changed', 'terminal:...
  default_types = ['window', 'focus', 'object:active-descendant-...
  all_types = ['window', 'focus', 'mouse', 'keyboard']
  state_val_to_name = dict(((value, name [6:].lower().replace('_...
  rel_val_to_name = dict(((value, name [9:].lower().replace('_',...
  mod_val_to_name = dict(((value, name [9:].lower().replace('_',...
Variables Details [hide private]

DEVICEEVENT_LISTENER_IDL

Value:
'IDL:Accessibility/DeviceEventListener:1.0'

STREAMABLE_CONTENT_IDL

Value:
'IDL:Accessibility/StreamableContent:1.0'

name_to_device_type

Value:
{'keyboard:release': Accessibility.KEY_RELEASED_EVENT, 'keyboard:press\
': Accessibility.KEY_PRESSED_EVENT}

device_type_to_name

Value:
{Accessibility.KEY_RELEASED: 'keyboard:release', Accessibility.KEY_PRE\
SSED: 'keyboard:press'}

event_tree

Value:
{'terminal': ['terminal:line-changed', 'terminal:columncount-changed',\
 'terminal:linecount-changed', 'terminal:application-changed', 'termin\
al:charwidth-changed'], 'document': ['document:load-complete', 'docume\
nt:reload', 'document:load-stopped', 'document:content-changed', 'docu\
ment:attributes-changed'], 'object': ['object:property-change', 'objec\
t:bounds-changed', 'object:link-selected', 'object:state-changed', 'ob\
ject:children-changed', 'object:visible-data-changed', 'object:selecti\
on-changed', 'object:model-changed', 'object:active-descendant-changed\
...

default_types

Value:
['window', 'focus', 'object:active-descendant-changed']

state_val_to_name

Value:
dict(((value, name [6:].lower().replace('_', ' ')) for name, value in \
acc_dict.items() if name.startswith('STATE_')))

rel_val_to_name

Value:
dict(((value, name [9:].lower().replace('_', ' ')) for name, value in \
acc_dict.items() if name.startswith('RELATION_')))

mod_val_to_name

Value:
dict(((value, name [9:].lower().replace('_', ' ')) for name, value in \
acc_dict.items() if name.startswith('MODIFIER_')))