Gtk.Accessible¶
| Subclasses: | Gtk.CellAccessible,Gtk.WidgetAccessible | 
|---|
Methods¶
| Inherited: | Atk.Object (25), 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 (15) | 
|---|
| Name | Type | Flags | Short Description | 
|---|---|---|---|
| widget | Gtk.Widget | r/w | The widget referenced by this accessible. | 
Signals¶
| Inherited: | Atk.Object (6), GObject.Object (1) | 
|---|
Fields¶
| Inherited: | Atk.Object (6), 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.Accessibleclass is the base class for accessible implementations for- Gtk.Widgetsubclasses. 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.Accessibleand implement the suitable interfaces from ATK, such as- Atk.Textor- 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.Accessibleis destroyed.- Deprecated since version 3.4: Use - Gtk.Accessible.set_widget() and its vfuncs.
 - 
get_widget()[source]¶
- Returns: - pointer to the - Gtk.Widgetcorresponding to the- Gtk.Accessible, or- None.- Return type: - Gtk.Widgetor- None- Gets the - Gtk.Widgetcorresponding 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.Widgetor- None) – a- Gtk.Widgetor- Noneto unset- Sets the - Gtk.Widgetcorresponding 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.Accessibleis destroyed.- Deprecated since version 3.4: Use - Gtk.Accessible.set_widget() and its vfuncs.
 - 
do_widget_set() virtual¶
 - 
do_widget_unset() virtual¶
 
-