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

Module Event

source code

Defines classes for monitoring and wrapping AT-SPI events. Hides most of the details of registering and unregistering for events behind a simple interface.


Author: Peter Parente

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

Classes [hide private]
  Event
Wraps an AT-SPI event with a more Pythonic interface.
  EventType
Wraps the AT-SPI event type string so its components can be accessed individually as klass (can't use the keyword class), major, minor, and detail (klass:major:minor:detail).
  Observer
Parent class for all event observers.
  DeviceObserver
Observes keyboard press and release events.
  EventObserver
Observes all non-keyboard AT-SPI events.
  Manager
Manages all event Observers.
Functions [hide private]
Observer
_createObserver(manager, et)
Factory function that builds the right kind of observer based on whether events to monitor are at the device level or not.
source code
Function Details [hide private]

_createObserver(manager, et)

source code 

Factory function that builds the right kind of observer based on whether events to monitor are at the device level or not.

Parameters:
  • manager (Manager) - Manager that will own this observer
  • et (EventType) - Type of event the created observer will monitor
Returns: Observer
Created observer object