Gtk.Accessible¶
- Subclasses:
Methods¶
- Inherited:
- Structs:
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
The widget referenced by this accessible. |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class Gtk.Accessible(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
The
Gtk.Accessible
class is the base class for accessible implementations forGtk.Widget
subclasses. It is a thin wrapper aroundAtk.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 asAtk.Text
orAtk.Selection
. To establish the connection between the widget class and its corresponding acccessible implementation, override the get_accessible vfunc inGtk.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 theGtk.Accessible
, orNone
.- Return type:
Gtk.Widget
orNone
Gets the
Gtk.Widget
corresponding to theGtk.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
orNone
) – aGtk.Widget
orNone
to unset
Sets the
Gtk.Widget
corresponding to theGtk.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:
- Default Value:
- Flags:
The widget referenced by this accessible.