Callbacks¶
|
|
|
|
|
|
|
|
|
|
|
Details¶
- Atspi.DeviceListenerCB(stroke, *user_data)¶
- Parameters:
stroke (
Atspi.DeviceEvent
) – TheAtspi.DeviceEvent
for which notification is being received.user_data (
object
orNone
) – Data which is passed to the client each time this callback is notified.
- 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:
A callback function prototype via which clients receive device event notifications.
- Atspi.DeviceListenerSimpleCB(stroke)¶
- Parameters:
stroke (
Atspi.DeviceEvent
) – TheAtspi.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:
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
orNone
) – 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.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.
A callback that will be invoked when a key is pressed.