Callbacks

DeviceListenerCB (stroke, *user_data)

DeviceListenerSimpleCB (stroke)

EventListenerCB (event, *user_data)

EventListenerSimpleCB (event)

GenerateMouseEventCB (*user_data)

KeyCallback (device, pressed, keycode, keysym, modifiers, keystring, *user_data)

Details

Atspi.DeviceListenerCB(stroke, *user_data)
Parameters:
Returns:

True if the client wishes to consume/preempt the event, preventing it from being relayed to the currently focussed application, False if the event delivery should proceed as normal.

Return type:

bool

A callback function prototype via which clients receive device event notifications.

Atspi.DeviceListenerSimpleCB(stroke)
Parameters:

stroke (Atspi.DeviceEvent) – The Atspi.DeviceEvent for which notification is being received.

Returns:

True if the client wishes to consume/preempt the event, preventing it from being relayed to the currently focussed application, False if the event delivery should proceed as normal.

Return type:

bool

Similar to Atspi.DeviceListenerCB, but with no user data.

Atspi.EventListenerCB(event, *user_data)
Parameters:
  • event (Atspi.Event) – The event for which notification is sent.

  • user_data (object or None) – User data which is passed to the callback each time a notification takes place.

A function prototype for callbacks via which clients are notified of AT-SPI events.

Atspi.EventListenerSimpleCB(event)
Parameters:

event (Atspi.Event) – The event for which notification is sent.

Like #AtspiEventlistenerCB, but with no user_data.

Atspi.GenerateMouseEventCB(*user_data)
Parameters:

user_data (object or None) –

Atspi.KeyCallback(device, pressed, keycode, keysym, modifiers, keystring, *user_data)
Parameters:
  • device (Atspi.Device) – the device.

  • pressed (bool) – True if the key is being pressed, False if being released.

  • keycode (int) – the hardware code for the key.

  • keysym (int) – the keysym for the key.

  • modifiers (int) – a bitflag indicating which key modifiers are active.

  • keystring (str) – the text corresponding to the keypress.

  • user_data (object or None) – user-supplied data

A callback that will be invoked when a key is pressed.