pyLinAcc :: Event :: Event :: Class Event
[hide private]
[frames] | no frames]

Class Event

source code

object --+
         |
        Event

Wraps an AT-SPI event with a more Pythonic interface. Both AT-SPI device events (e.g. keyboard) and "normal" AT-SPI events (everything else) are handled by this class.


Note: All unmarked attributes of this class should be considered public readable and writable as the class is acting as a record object.

Instance Methods [hide private]
 
__init__(self, event)
Extracts information from the provided event.
source code
string
__str__(self)
Builds a human readable representation of the event including event type, parameters, and, optionally, source info.
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__

Instance Variables [hide private]
object any_data
Extra AT-SPI data payload
boolean consume
Should this event be consumed and not allowed to pass on to observers further down the dispatch chain?
integer detail1
First AT-SPI event parameter
integer detail2
Second AT-SPI event parameter
Accessibility.Accessible source
Source of the event
EventType type
The type of the AT-SPI event
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, event)
(Constructor)

source code 

Extracts information from the provided event. If the event is a "normal" event, pulls the detail1, detail2, any_data, and source values out of the given object and stores it in this object. If the event is a device event, key ID is stored in detail1, scan code is stored in detail2, key name, key modifiers (e.g. ALT, CTRL, etc.), is text flag, and timestamp are stored as a 4-tuple in any_data, and source is None (since key events are global).

Parameters:
  • event (Accessibility.Event or Accessibility.DeviceEvent) - Event from an AT-SPI callback
Overrides: object.__init__

__str__(self)
(Informal representation operator)

source code 

Builds a human readable representation of the event including event type, parameters, and, optionally, source info. This method is used by an AEMonitor to buffer string representations of events.

Returns: string
Event description
Overrides: object.__str__