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

Class EventType

source code

object --+
         |
        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).


Note: All attributes of an instance of this class should be considered public readable as it is acting a a struct.

Instance Methods [hide private]
 
__init__(self, name)
Parses the full AT-SPI event name into its components (klass:major:minor:detail).
source code
string
__str__(self)
Returns: Full event name as human readable representation of this event type
source code
string
asString(self)
Builds a human readable representation of the event type.
source code

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

Class Variables [hide private]
4-tuple of string format = 'klass', 'major', 'minor', 'detail'
Names of the event string components
Instance Variables [hide private]
string detail
Lowest level event type description
string klass
Most general event type identifier (object, window, mouse, etc.)
string major
Second level event type description
string minor
Third level event type description
string name
Full, unparsed event name as received from AT-SPI
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, name)
(Constructor)

source code 

Parses the full AT-SPI event name into its components (klass:major:minor:detail). If the provided event name is an integer instead of a string, then the event is really a device event. An exception is raised in this case so Event knows to convert the device event integer constant to a keyboard event name string.

Parameters:
  • name (string) - Full AT-SPI event name
Raises:
  • AttributeError - When the given event name is not a valid string
Overrides: object.__init__

__str__(self)
(Informal representation operator)

source code 

str(x)

Returns: string
Full event name as human readable representation of this event type
Overrides: object.__str__

asString(self)

source code 

Builds a human readable representation of the event type.

Returns: string
Event type description