Callbacks¶
|
|
|
|
|
|
|
|
|
|
|
Details¶
- Atspi.DeviceListenerCB(stroke, *user_data)¶
- Parameters:
stroke (
Atspi.DeviceEvent) – TheAtspi.DeviceEventfor which notification is being received.user_data (
objectorNone) – Data which is passed to the client each time this callback is notified.
- Returns:
Trueif the client wishes to consume/preempt the event, preventing it from being relayed to the currently focussed application,Falseif 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.DeviceEventfor which notification is being received.- Returns:
Trueif the client wishes to consume/preempt the event, preventing it from being relayed to the currently focussed application,Falseif 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 (
objectorNone) – 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) –Trueif the key is being pressed,Falseif 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.