Callbacks

  DeviceListenerCB (stroke, *user_data)
  DeviceListenerSimpleCB (stroke)
  EventListenerCB (event, *user_data)
  EventListenerSimpleCB (event)

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.