ATContext#

class ATContext(**properties: Any)#

Superclasses: Object

Communicates with platform-specific assistive technologies API.

Each platform supported by GTK implements a GtkATContext subclass, and is responsible for updating the accessible state in response to state changes in GtkAccessible.

Constructors#

class ATContext
classmethod create(accessible_role: AccessibleRole, accessible: Accessible, display: Display) ATContext | None#

Creates a new GtkATContext instance for the given accessible role, accessible instance, and display connection.

The GtkATContext implementation being instantiated will depend on the platform.

Parameters:
  • accessible_role – the accessible role used by the GtkATContext

  • accessible – the GtkAccessible implementation using the GtkATContext

  • display – the GdkDisplay used by the GtkATContext

Methods#

class ATContext
get_accessible() Accessible#

Retrieves the GtkAccessible using this context.

get_accessible_role() AccessibleRole#

Retrieves the accessible role of this context.

Properties#

class ATContext
props.accessible: Accessible#

The GtkAccessible that created the GtkATContext instance.

props.accessible_role: AccessibleRole#

The accessible role used by the AT context.

Depending on the given role, different states and properties can be set or retrieved.

props.display: Display#

The GdkDisplay for the GtkATContext.

props.realized: bool#

Whether the GtkATContext has been realized or not.

Added in version 4.24.

Signals#

class ATContext.signals
state_change() None#

Emitted when the attributes of the accessible for the GtkATContext instance change.