Gtk.Accessible

g Atk.Object Atk.Object Gtk.Accessible Gtk.Accessible Atk.Object->Gtk.Accessible GObject.Object GObject.Object GObject.Object->Atk.Object

Subclasses:

Gtk.CellAccessible, Gtk.WidgetAccessible

Methods

Inherited:

Atk.Object (27), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

connect_widget_destroyed ()

get_widget ()

set_widget (widget)

Virtual Methods

Inherited:

Atk.Object (24), GObject.Object (7)

do_connect_widget_destroyed ()

do_widget_set ()

do_widget_unset ()

Properties

Inherited:

Atk.Object (17)

Name

Type

Flags

Short Description

widget

Gtk.Widget

r/w

The widget referenced by this accessible.

Signals

Inherited:

Atk.Object (9), GObject.Object (1)

Fields

Inherited:

Atk.Object (9), GObject.Object (1)

Name

Type

Access

Description

parent

Atk.Object

r

Class Details

class Gtk.Accessible(**kwargs)
Bases:

Atk.Object

Abstract:

No

Structure:

Gtk.AccessibleClass

The Gtk.Accessible class is the base class for accessible implementations for Gtk.Widget subclasses. It is a thin wrapper around Atk.Object, which adds facilities for associating a widget with its accessible object.

An accessible implementation for a third-party widget should derive from Gtk.Accessible and implement the suitable interfaces from ATK, such as Atk.Text or Atk.Selection. To establish the connection between the widget class and its corresponding acccessible implementation, override the get_accessible vfunc in Gtk.WidgetClass.

connect_widget_destroyed()[source]

This function specifies the callback function to be called when the widget corresponding to a Gtk.Accessible is destroyed.

Deprecated since version 3.4: Use Gtk.Accessible.set_widget() and its vfuncs.

get_widget()[source]
Returns:

pointer to the Gtk.Widget corresponding to the Gtk.Accessible, or None.

Return type:

Gtk.Widget or None

Gets the Gtk.Widget corresponding to the Gtk.Accessible. The returned widget does not have a reference added, so you do not need to unref it.

New in version 2.22.

set_widget(widget)[source]
Parameters:

widget (Gtk.Widget or None) – a Gtk.Widget or None to unset

Sets the Gtk.Widget corresponding to the Gtk.Accessible.

self will not hold a reference to widget. It is the caller’s responsibility to ensure that when widget is destroyed, the widget is unset by calling this function again with widget set to None.

New in version 2.22.

do_connect_widget_destroyed() virtual

This function specifies the callback function to be called when the widget corresponding to a Gtk.Accessible is destroyed.

Deprecated since version 3.4: Use Gtk.Accessible.set_widget() and its vfuncs.

do_widget_set() virtual
do_widget_unset() virtual

Property Details

Gtk.Accessible.props.widget
Name:

widget

Type:

Gtk.Widget

Default Value:

None

Flags:

READABLE, WRITABLE

The widget referenced by this accessible.