Gtk.Accessible
Gtk.Accessible — Accessibility support for widgets
Object Hierarchy:
GObject
╰── AtkObject
╰── Gtk.Accessible
Functions:
- connect_widget_destroyed
(self)
- get_widget
(self) -> Gtk.Widget
- set_widget
(self, widget:Gtk.Widget=None)
Description:
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.
Function Details:
connect_widget_destroyed()
connect_widget_destroyed (self)
Gtk.Accessible:connect_widget_destroyed
has been deprecated since version 3.4 and should not be used in newly-written code.
Use Gtk.Accessible:set_widget()
and its vfuncs.
This function specifies the callback function to be calledwhen the widget corresponding to a Gtk.Accessible
is destroyed.
get_widget()
get_widget (self) -> Gtk.Widget
Gets the Gtk.Widget
corresponding to the Gtk.Accessible
.The returned widget does not have a reference added, soyou do not need to unref it.
Returns: pointer to the
Gtk.Widgetcorresponding
to theGtk.Accessible
, orNone
.Since: 2.22
set_widget()
set_widget (self, widget:Gtk.Widget=None)
Sets the Gtk.Widget
corresponding to the Gtk.Accessible
.
accessible
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 functionagain with widget
set to None
.
- Since: 2.22