Gladeui.WidgetAdaptor¶
| Subclasses: | None | 
|---|
Methods¶
| Inherited: | GObject.Object (37) | 
|---|---|
| Structs: | GObject.ObjectClass (5) | 
| class | from_catalog(catalog, class_node, module) | 
| class | get_by_name(name) | 
| class | get_by_type(type) | 
| class | list_adaptors() | 
| action_activate(object, action_path) | |
| action_add(action_path, label, stock, important) | |
| action_remove(action_path) | |
| action_submenu(object, action_path) | |
| actions_new() | |
| add(container, child) | |
| add_verify(container, child, user_feedback) | |
| child_action_activate(container, object, action_path) | |
| child_get_property(container, child, property_name, value) | |
| child_set_property(container, child, property_name, value) | |
| child_verify_property(container, child, property_name, value) | |
| construct_object(n_parameters, parameters) | |
| create_editable(type) | |
| create_eprop(def_, use_command) | |
| create_eprop_by_name(property_id, packing, use_command) | |
| default_params(construct) | |
| depends(widget, another) | |
| destroy_object(object) | |
| from_pspec(pspec) | |
| get_book() | |
| get_catalog() | |
| get_children(container) | |
| get_display_name() | |
| get_generic_name() | |
| get_icon_name() | |
| get_internal_child(object, internal_name) | |
| get_missing_icon() | |
| get_name() | |
| get_object_type() | |
| get_pack_property_def(name) | |
| get_packing_default(container_adaptor, id) | |
| get_packing_props() | |
| get_parent_adaptor() | |
| get_properties() | |
| get_property(object, property_name, value) | |
| get_property_def(name) | |
| get_signal_def(name) | |
| get_signals() | |
| get_title() | |
| get_type_func() | |
| has_child(container, child) | |
| has_internal_children() | |
| is_container() | |
| pack_action_add(action_path, label, stock, important) | |
| pack_action_remove(action_path) | |
| pack_actions_new() | |
| post_create(object, reason) | |
| query() | |
| read_child(widget, node) | |
| read_widget(widget, node) | |
| register() | |
| remove(container, child) | |
| replace_child(container, old_obj, new_obj) | |
| set_property(object, property_name, value) | |
| string_from_value(def_, value) | |
| verify_property(object, property_name, value) | |
| write_child(widget, context, node) | |
| write_widget(widget, context, node) | |
| write_widget_after(widget, context, node) | 
Virtual Methods¶
| Inherited: | GObject.Object (7) | 
|---|
| do_action_activate(object, action_path) | |
| do_action_submenu(object, action_path) | |
| do_add(container, child) | |
| do_add_verify(container, child, user_feedback) | |
| do_child_action_activate(container, object, action_path) | |
| do_child_get_property(container, child, property_name, value) | |
| do_child_set_property(container, child, property_name, value) | |
| do_child_verify_property(container, child, property_name, value) | |
| do_construct_object(n_parameters, parameters) | |
| do_create_editable(type) | |
| do_create_eprop(def_, use_command) | |
| do_deep_post_create(object, reason) | |
| do_depends(widget, another) | |
| do_destroy_object(object) | |
| do_get_children(container) | |
| do_get_internal_child(object, internal_name) | |
| do_get_property(object, property_name, value) | |
| do_post_create(object, reason) | |
| do_read_child(widget, node) | |
| do_read_widget(widget, node) | |
| do_remove(container, child) | |
| do_replace_child(container, old_obj, new_obj) | |
| do_set_property(object, property_name, value) | |
| do_string_from_value(def_, value) | |
| do_verify_property(object, property_name, value) | |
| do_write_child(widget, context, node) | |
| do_write_widget(widget, context, node) | |
| do_write_widget_after(widget, context, node) | 
Properties¶
| Name | Type | Flags | Short Description | 
|---|---|---|---|
| book | str | r/w/co | DevHelp search namespace for this widget class | 
| catalog | str | r/w/co | The name of the widget catalog this class was declared by | 
| cursor | int | r | A cursor for inserting widgets in the UI | 
| generic-name | str | r/w/co | Used to generate names of new widgets | 
| icon-name | str | r/w/co | The icon name | 
| name | str | r/w/co | Name of the class | 
| query | bool | r/w | Whether the adaptor should query the use or not | 
| special-child-type | str | r/w/co | Holds the name of the packing property to depict special children for this container class | 
| title | str | r/w | Translated title for the class used in the glade UI | 
| type | GObject.GType | r/w/co | GObject.GTypeof the class | 
Signals¶
| Inherited: | GObject.Object (1) | 
|---|
Class Details¶
- 
class Gladeui.WidgetAdaptor(**kwargs)¶
- Bases: - GObject.Object- Abstract: - No - Structure: - Gladeui.WidgetAdaptorClass- 
classmethod from_catalog(catalog, class_node, module)¶
- Parameters: - catalog (Gladeui.Catalog) – AGladeui.Catalog
- class_node (Gladeui.XmlNode) – theGladeui.XmlNodeto load
- module (GModule.Module) – the pluginGModule.Module.
 - Returns: - a newly allocated - Gladeui.WidgetAdaptor- Return type: - Dynamically creates a subclass of - Gladeui.WidgetAdaptorand subclasses the closest parent adaptor (parent class adapters must be created/registered prior to child classes, otherwise inheritance wont work) and parses in the relevant catalog info.
- catalog (
 - 
classmethod get_by_name(name)¶
- Parameters: - name ( - str) – name of the widget class (for instance:- Gtk.Button)- Returns: - an existing - Gladeui.WidgetAdaptorwith the name equaling name, or- Noneif such a class doesn’t exist- Return type: - Gladeui.WidgetAdaptoror- None
 - 
classmethod get_by_type(type)¶
- Parameters: - type ( - GObject.GType) – the- GObject.GTypeof an object class- Returns: - an existing - Gladeui.WidgetAdaptorwith the type equaling type, or- Noneif such a class doesn’t exist- Return type: - Gladeui.WidgetAdaptoror- None
 - 
classmethod list_adaptors()¶
- Returns: - A newly allocated - GLib.Listwhich must be freed with g_list_free()- Return type: - [ - Gladeui.WidgetAdaptor]- Compiles a list of all registered adaptors. 
 - 
action_activate(object, action_path)¶
- Parameters: - object (GObject.Object) – TheGObject.Object
- action_path (str) – The action identifier in the action tree
 - An adaptor function to be called on widget actions. 
- object (
 - 
action_add(action_path, label, stock, important)¶
- Parameters: - Returns: - whether or not the action was added/updated. - Return type: - Add an action to self. If the action is present then it overrides label and stock 
 - 
action_remove(action_path)¶
- Parameters: - action_path ( - str) – The identifier of this action in the action tree- Returns: - whether or not the action was removed. - Return type: - bool- Remove an self’s action. 
 - Parameters: - object (GObject.Object) – TheGObject.Object
- action_path (str) – The action identifier in the action tree
 - Returns: - Return type: - Gtk.Widgetor- None- This delegate function is used to create dynamically customized submenus. Called only for actions that don’t have children. 
- object (
 - 
actions_new()¶
- Returns: - a new list of - Gladeui.WidgetAction.- Return type: - [ - Gladeui.WidgetAction]- Create a list of actions. 
 - 
add(container, child)¶
- Parameters: - container (GObject.Object) – TheGObject.Objectcontainer
- child (GObject.Object) – TheGObject.Objectchild
 - Adds child to container. 
- container (
 - 
add_verify(container, child, user_feedback)¶
- Parameters: - container (GObject.Object) – AGObject.Objectcontainer
- child (GObject.Object) – AGObject.Objectchild
- user_feedback (bool) – whether a notification dialog should be presented in the case that the child cannot not be added.
 - Returns: - whether child can be added to parent. - Return type: - Checks whether child can be added to parent. - If user_feedback is - Trueand child cannot be added then this shows a notification dialog to the user explaining why.
- container (
 - 
child_action_activate(container, object, action_path)¶
- Parameters: - container (GObject.Object) – TheGObject.Objectcontainer
- object (GObject.Object) – TheGObject.Object
- action_path (str) – The action identifier in the action tree
 - An adaptor function to be called on widget actions. 
- container (
 - 
child_get_property(container, child, property_name, value)¶
- Parameters: - container (GObject.Object) – TheGObject.Objectcontainer
- child (GObject.Object) – TheGObject.Objectchild
- property_name (str) – The id of the property
- value (GObject.Value) – The GValue
 - Gets child’s packing property identified by property_name. 
- container (
 - 
child_set_property(container, child, property_name, value)¶
- Parameters: - container (GObject.Object) – TheGObject.Objectcontainer
- child (GObject.Object) – TheGObject.Objectchild
- property_name (str) – The id of the property
- value (GObject.Value) – The GValue
 - Sets child’s packing property identified by property_name to value. 
- container (
 - 
child_verify_property(container, child, property_name, value)¶
- Parameters: - container (GObject.Object) – TheGObject.Objectcontainer
- child (GObject.Object) – TheGObject.Objectchild
- property_name (str) – The id of the property
- value (GObject.Value) – The GValue
 - Returns: - whether or not its OK to set value on object, this function will silently return - Trueif the class did not provide a verify function.- Return type: - This delegate function is always called whenever setting any properties with the exception of load time, and copy/paste time (basically the two places where we recreate a hierarchy that we already know “works”) its basically an optional backend provided boundary checker for properties. 
- container (
 - 
construct_object(n_parameters, parameters)¶
- Parameters: - n_parameters (int) – amount of construct parameters
- parameters (GObject.Parameter) – array of constructGObject.Parameterargs to create the new object with.
 - Returns: - A newly created - GObject.Object- Return type: - This function is called to construct a - GObject.Objectinstance for a- Gladeui.Widgetof the said self. (provided for language bindings that may need to construct a wrapper object).
- n_parameters (
 - 
create_editable(type)¶
- Parameters: - type ( - Gladeui.EditorPageType) – The- Gladeui.EditorPageType- Returns: - A new - Gladeui.Editablewidget- Return type: - Gladeui.Editable- This is used to allow the backend to override the way an editor page is layed out (note that editor widgets are created on demand and not at startup). 
 - 
create_eprop(def_, use_command)¶
- Parameters: - def (Gladeui.PropertyDef) – TheGladeui.PropertyDefto be edited
- use_command (bool) – whether to use theGladeui.Commandinterface to commit property changes
 - Returns: - A newly created - Gladeui.EditorProperty- Return type: - Creates a - Gladeui.EditorPropertyto edit def
- def (
 - 
create_eprop_by_name(property_id, packing, use_command)¶
- Parameters: - property_id (str) – the string if of the correspondingGladeui.PropertyDefto be edited
- packing (bool) – whether this refers to a packing property
- use_command (bool) – whether to use theGladeui.Commandinterface to commit property changes
 - Returns: - A newly created - Gladeui.EditorProperty- Return type: - Creates a - Gladeui.EditorPropertyto edit- Gladeui.PropertyDefname in self
- property_id (
 - 
default_params(construct)¶
- Parameters: - construct ( - bool) – whether to return construct params or not construct params- Returns: - A list of params for use in - GObject.Object.newv()- Return type: - [ - GObject.Parameter]
 - 
depends(widget, another)¶
- Parameters: - widget (Gladeui.Widget) – AGladeui.Widgetof the adaptor
- another (Gladeui.Widget) – anotherGladeui.Widget
 - Returns: - whether widget depends on another being parsed first in the resulting glade file. - Return type: - Checks whether widget depends on another to be placed earlier in the glade file. - Deprecated since version 3.18. 
- widget (
 - 
destroy_object(object)¶
- Parameters: - object ( - GObject.Object) – The object to destroy- This function is called to destroy a - GObject.Objectinstance.
 - 
from_pspec(pspec)¶
- Parameters: - pspec ( - GObject.ParamSpec) – a- GObject.ParamSpec- Returns: - the closest - Gladeui.WidgetAdaptorin the ancestry to self which is responsable for introducing pspec.- Return type: - Gladeui.WidgetAdaptor- Assumes pspec is a property in an object class wrapped by self, this function will search for the specific parent adaptor class which originally introduced pspec. 
 - 
get_children(container)¶
- Parameters: - container ( - GObject.Object) – The- GObject.Objectcontainer- Returns: - A - GLib.Listof children- Return type: - [ - GObject.Object]- Lists the children of container. 
 - 
get_display_name()¶
- Returns: - the name of the adaptor without - Gladeui.WIDGET_ADAPTOR_INSTANTIABLE_PREFIX- Return type: - str
 - 
get_internal_child(object, internal_name)¶
- Parameters: - object (GObject.Object) – TheGObject.Object
- internal_name (str) – The string identifier of the internal object
 - Returns: - The internal - GObject.Object- Return type: - Retrieves the internal object internal_name from object 
- object (
 - 
get_object_type()¶
- Return type: - GObject.GType
 - 
get_pack_property_def(name)¶
- Parameters: - name ( - str) – a string- Returns: - A - Gladeui.PropertyDefobject- Return type: - Gladeui.PropertyDefor- None- Retrieves the - Gladeui.PropertyDeffor name in self’s child properties
 - 
get_packing_default(container_adaptor, id)¶
- Parameters: - container_adaptor (Gladeui.WidgetAdaptor) – TheGladeui.WidgetAdaptorfor the parent object
- id (str) – The string property identifier
 - Returns: - a string representing the default value for property_id - Return type: - Gets the default value for property_id on a widget governed by self when parented in a widget governed by parent_adaptor 
- container_adaptor (
 - 
get_packing_props()¶
- Returns: - a list of - Gladeui.PropertyDef- Return type: - [ - Gladeui.PropertyDef]
 - 
get_parent_adaptor()¶
- Returns: - the parent - Gladeui.WidgetAdaptoraccording to self type- Return type: - Gladeui.WidgetAdaptor
 - 
get_properties()¶
- Returns: - a list of - Gladeui.PropertyDef- Return type: - [ - Gladeui.PropertyDef]
 - 
get_property(object, property_name, value)¶
- Parameters: - object (GObject.Object) – TheGObject.Object
- property_name (str) – The property identifier
- value (GObject.Value) – TheGObject.Value
 - Gets value of property_name on object. 
- object (
 - 
get_property_def(name)¶
- Parameters: - name ( - str) – a string- Returns: - A - Gladeui.PropertyDefobject- Return type: - Gladeui.PropertyDefor- None- Retrieves the - Gladeui.PropertyDeffor name in self
 - 
get_signal_def(name)¶
- Parameters: - name ( - str) – the name of the signal class.- Returns: - a - Gladeui.SignalDefor- None- Return type: - Gladeui.SignalDefor- None- Looks up signal class name on self. 
 - 
get_signals()¶
- Returns: - a list of - Gladeui.SignalDef- Return type: - [ - Gladeui.SignalDef]
 - 
get_type_func()¶
- Returns: - The _get_type () function name or - Noneif none is set- Return type: - stror- None- Get the _get_type () function name if it is set, a - Nonevalue means that the default heuristic for getting the- GObject.GTypeis enough for both Glade and- Gtk.Builder.
 - 
has_child(container, child)¶
- Parameters: - container (GObject.Object) – TheGObject.Objectcontainer
- child (GObject.Object) – TheGObject.Objectchild
 - Returns: - whether child is infact inside container. - Return type: 
- container (
 - 
is_container()¶
- Returns: - whether or not self is a container - Return type: - bool- Checks whether or not this adaptor has support to interface with child objects. 
 - 
pack_action_add(action_path, label, stock, important)¶
- Parameters: - Returns: - whether or not the action was added/updated. - Return type: - Add a packing action to self. If the action is present then it overrides label and stock 
 - 
pack_action_remove(action_path)¶
- Parameters: - action_path ( - str) – The identifier of this action in the action tree- Returns: - whether or not the action was removed. - Return type: - bool- Remove an self’s packing action. 
 - 
pack_actions_new()¶
- Returns: - a new list of - Gladeui.WidgetAction.- Return type: - [ - Gladeui.WidgetAction]- Create a list of packing actions. 
 - 
post_create(object, reason)¶
- Parameters: - object (GObject.Object) – TheGObject.Object
- reason (Gladeui.CreateReason) – TheGladeui.CreateReasonthat object was created for
 - An adaptor function to be called after the object is created 
- object (
 - 
query()¶
- Returns: - whether the user needs to be queried for certain properties upon creation of this class. - Return type: - bool
 - 
read_child(widget, node)¶
- Parameters: - widget (Gladeui.Widget) – TheGladeui.Widget
- node (Gladeui.XmlNode) – TheGladeui.XmlNode
 - This function is called to update load a child widget from node when loading xml files (will recurse into - Gladeui.Widget.read())
- widget (
 - 
read_widget(widget, node)¶
- Parameters: - widget (Gladeui.Widget) – TheGladeui.Widget
- node (Gladeui.XmlNode) – TheGladeui.XmlNode
 - This function is called to update widget from node when loading xml files. 
- widget (
 - 
register()¶
- Registers self into the Glade core (every supported object type must have a registered adaptor). 
 - 
remove(container, child)¶
- Parameters: - container (GObject.Object) – TheGObject.Objectcontainer
- child (GObject.Object) – TheGObject.Objectchild
 - Removes child from container. 
- container (
 - 
replace_child(container, old_obj, new_obj)¶
- Parameters: - container (GObject.Object) – TheGObject.Objectcontainer
- old_obj (GObject.Object) – The oldGObject.Objectchild
- new_obj (GObject.Object) – The newGObject.Objectchild
 - Replaces old_obj with new_obj in container while positioning new_obj where old_obj was and assigning it appropriate packing property values. 
- container (
 - 
set_property(object, property_name, value)¶
- Parameters: - object (GObject.Object) – TheGObject.Object
- property_name (str) – The property identifier
- value (GObject.Value) – TheGObject.Value
 - This delegate function is used to apply the property value on the runtime object. 
- object (
 - 
string_from_value(def_, value)¶
- Parameters: - def (Gladeui.PropertyDef) – TheGladeui.PropertyDef
- value (GObject.Value) – TheGObject.Valueto convert to a string
 - Returns: - A newly allocated string representation of value - Return type: - For normal properties this is used to serialize property values, for custom properties its still needed to update the UI for undo/redo items etc. 
- def (
 - 
verify_property(object, property_name, value)¶
- Parameters: - object (GObject.Object) – TheGObject.Object
- property_name (str) – The property identifier
- value (GObject.Value) – TheGObject.Value
 - Returns: - whether or not its OK to set value on object, this function will silently return - Trueif the class did not provide a verify function.- Return type: - This delegate function is always called whenever setting any properties with the exception of load time, and copy/paste time (basically the two places where we recreate a hierarchy that we already know “works”) its basically an optional backend provided boundary checker for properties. 
- object (
 - 
write_child(widget, context, node)¶
- Parameters: - widget (Gladeui.Widget) – TheGladeui.Widget
- context (Gladeui.XmlContext) – TheGladeui.XmlContext
- node (Gladeui.XmlNode) – TheGladeui.XmlNode
 - This function is called to write the child widget to node when writing xml files (takes care of packing and recurses into - Gladeui.Widget.write())
- widget (
 - 
write_widget(widget, context, node)¶
- Parameters: - widget (Gladeui.Widget) – TheGladeui.Widget
- context (Gladeui.XmlContext) – TheGladeui.XmlContext
- node (Gladeui.XmlNode) – TheGladeui.XmlNode
 - This function is called to write widget to node when writing xml files. 
- widget (
 - 
write_widget_after(widget, context, node)¶
- Parameters: - widget (Gladeui.Widget) – TheGladeui.Widget
- context (Gladeui.XmlContext) – TheGladeui.XmlContext
- node (Gladeui.XmlNode) – TheGladeui.XmlNode
 - This function is called to write widget to node when writing xml files (after writing children) 
- widget (
 - 
do_action_activate(object, action_path) virtual¶
- Parameters: - object (GObject.Object) – TheGObject.Object
- action_path (str) – The action identifier in the action tree
 - An adaptor function to be called on widget actions. 
- object (
 - Parameters: - object (GObject.Object) – TheGObject.Object
- action_path (str) – The action identifier in the action tree
 - Returns: - Return type: - Gtk.Widgetor- None- This delegate function is used to create dynamically customized submenus. Called only for actions that don’t have children. 
- object (
 - 
do_add(container, child) virtual¶
- Parameters: - container (GObject.Object) – TheGObject.Objectcontainer
- child (GObject.Object) – TheGObject.Objectchild
 - Adds child to container. 
- container (
 - 
do_add_verify(container, child, user_feedback) virtual¶
- Parameters: - container (GObject.Object) – AGObject.Objectcontainer
- child (GObject.Object) – AGObject.Objectchild
- user_feedback (bool) – whether a notification dialog should be presented in the case that the child cannot not be added.
 - Returns: - whether child can be added to parent. - Return type: - Checks whether child can be added to parent. - If user_feedback is - Trueand child cannot be added then this shows a notification dialog to the user explaining why.
- container (
 - 
do_child_action_activate(container, object, action_path) virtual¶
- Parameters: - container (GObject.Object) – TheGObject.Objectcontainer
- object (GObject.Object) – TheGObject.Object
- action_path (str) – The action identifier in the action tree
 - An adaptor function to be called on widget actions. 
- container (
 - 
do_child_get_property(container, child, property_name, value) virtual¶
- Parameters: - container (GObject.Object) – TheGObject.Objectcontainer
- child (GObject.Object) – TheGObject.Objectchild
- property_name (str) – The id of the property
- value (GObject.Value) – The GValue
 - Gets child’s packing property identified by property_name. 
- container (
 - 
do_child_set_property(container, child, property_name, value) virtual¶
- Parameters: - container (GObject.Object) – TheGObject.Objectcontainer
- child (GObject.Object) – TheGObject.Objectchild
- property_name (str) – The id of the property
- value (GObject.Value) – The GValue
 - Sets child’s packing property identified by property_name to value. 
- container (
 - 
do_child_verify_property(container, child, property_name, value) virtual¶
- Parameters: - container (GObject.Object) – TheGObject.Objectcontainer
- child (GObject.Object) – TheGObject.Objectchild
- property_name (str) – The id of the property
- value (GObject.Value) – The GValue
 - Returns: - whether or not its OK to set value on object, this function will silently return - Trueif the class did not provide a verify function.- Return type: - This delegate function is always called whenever setting any properties with the exception of load time, and copy/paste time (basically the two places where we recreate a hierarchy that we already know “works”) its basically an optional backend provided boundary checker for properties. 
- container (
 - 
do_construct_object(n_parameters, parameters) virtual¶
- Parameters: - n_parameters (int) – amount of construct parameters
- parameters (GObject.Parameter) – array of constructGObject.Parameterargs to create the new object with.
 - Returns: - A newly created - GObject.Object- Return type: - This function is called to construct a - GObject.Objectinstance for a- Gladeui.Widgetof the said adaptor. (provided for language bindings that may need to construct a wrapper object).
- n_parameters (
 - 
do_create_editable(type) virtual¶
- Parameters: - type ( - Gladeui.EditorPageType) – The- Gladeui.EditorPageType- Returns: - A new - Gladeui.Editablewidget- Return type: - Gladeui.Editable- This is used to allow the backend to override the way an editor page is layed out (note that editor widgets are created on demand and not at startup). 
 - 
do_create_eprop(def_, use_command) virtual¶
- Parameters: - def (Gladeui.PropertyDef) – TheGladeui.PropertyDefto be edited
- use_command (bool) – whether to use theGladeui.Commandinterface to commit property changes
 - Returns: - A newly created - Gladeui.EditorProperty- Return type: - Creates a - Gladeui.EditorPropertyto edit def
- def (
 - 
do_deep_post_create(object, reason) virtual¶
- Parameters: - object (GObject.Object) – TheGObject.Object
- reason (Gladeui.CreateReason) – TheGladeui.CreateReasonthat object was created for
 
- object (
 - 
do_depends(widget, another) virtual¶
- Parameters: - widget (Gladeui.Widget) – AGladeui.Widgetof the adaptor
- another (Gladeui.Widget) – anotherGladeui.Widget
 - Returns: - whether widget depends on another being parsed first in the resulting glade file. - Return type: - Checks whether widget depends on another to be placed earlier in the glade file. - Deprecated since version 3.18. 
- widget (
 - 
do_destroy_object(object) virtual¶
- Parameters: - object ( - GObject.Object) – The object to destroy- This function is called to destroy a - GObject.Objectinstance.
 - 
do_get_children(container) virtual¶
- Parameters: - container ( - GObject.Object) – The- GObject.Objectcontainer- Returns: - A - GLib.Listof children- Return type: - [ - GObject.Object]- Lists the children of container. 
 - 
do_get_internal_child(object, internal_name) virtual¶
- Parameters: - object (GObject.Object) – TheGObject.Object
- internal_name (str) – The string identifier of the internal object
 - Returns: - The internal - GObject.Object- Return type: - Retrieves the internal object internal_name from object 
- object (
 - 
do_get_property(object, property_name, value) virtual¶
- Parameters: - object (GObject.Object) – TheGObject.Object
- property_name (str) – The property identifier
- value (GObject.Value) – TheGObject.Value
 - Gets value of property_name on object. 
- object (
 - 
do_post_create(object, reason) virtual¶
- Parameters: - object (GObject.Object) – TheGObject.Object
- reason (Gladeui.CreateReason) – TheGladeui.CreateReasonthat object was created for
 - An adaptor function to be called after the object is created 
- object (
 - 
do_read_child(widget, node) virtual¶
- Parameters: - widget (Gladeui.Widget) – TheGladeui.Widget
- node (Gladeui.XmlNode) – TheGladeui.XmlNode
 - This function is called to update load a child widget from node when loading xml files (will recurse into - Gladeui.Widget.read())
- widget (
 - 
do_read_widget(widget, node) virtual¶
- Parameters: - widget (Gladeui.Widget) – TheGladeui.Widget
- node (Gladeui.XmlNode) – TheGladeui.XmlNode
 - This function is called to update widget from node when loading xml files. 
- widget (
 - 
do_remove(container, child) virtual¶
- Parameters: - container (GObject.Object) – TheGObject.Objectcontainer
- child (GObject.Object) – TheGObject.Objectchild
 - Removes child from container. 
- container (
 - 
do_replace_child(container, old_obj, new_obj) virtual¶
- Parameters: - container (GObject.Object) – TheGObject.Objectcontainer
- old_obj (GObject.Object) – The oldGObject.Objectchild
- new_obj (GObject.Object) – The newGObject.Objectchild
 - Replaces old_obj with new_obj in container while positioning new_obj where old_obj was and assigning it appropriate packing property values. 
- container (
 - 
do_set_property(object, property_name, value) virtual¶
- Parameters: - object (GObject.Object) – TheGObject.Object
- property_name (str) – The property identifier
- value (GObject.Value) – TheGObject.Value
 - This delegate function is used to apply the property value on the runtime object. 
- object (
 - 
do_string_from_value(def_, value) virtual¶
- Parameters: - def (Gladeui.PropertyDef) – TheGladeui.PropertyDef
- value (GObject.Value) – TheGObject.Valueto convert to a string
 - Returns: - A newly allocated string representation of value - Return type: - For normal properties this is used to serialize property values, for custom properties its still needed to update the UI for undo/redo items etc. 
- def (
 - 
do_verify_property(object, property_name, value) virtual¶
- Parameters: - object (GObject.Object) – TheGObject.Object
- property_name (str) – The property identifier
- value (GObject.Value) – TheGObject.Value
 - Returns: - whether or not its OK to set value on object, this function will silently return - Trueif the class did not provide a verify function.- Return type: - This delegate function is always called whenever setting any properties with the exception of load time, and copy/paste time (basically the two places where we recreate a hierarchy that we already know “works”) its basically an optional backend provided boundary checker for properties. 
- object (
 - 
do_write_child(widget, context, node) virtual¶
- Parameters: - widget (Gladeui.Widget) – TheGladeui.Widget
- context (Gladeui.XmlContext) – TheGladeui.XmlContext
- node (Gladeui.XmlNode) – TheGladeui.XmlNode
 - This function is called to write the child widget to node when writing xml files (takes care of packing and recurses into - Gladeui.Widget.write())
- widget (
 - 
do_write_widget(widget, context, node) virtual¶
- Parameters: - widget (Gladeui.Widget) – TheGladeui.Widget
- context (Gladeui.XmlContext) – TheGladeui.XmlContext
- node (Gladeui.XmlNode) – TheGladeui.XmlNode
 - This function is called to write widget to node when writing xml files. 
- widget (
 - 
do_write_widget_after(widget, context, node) virtual¶
- Parameters: - widget (Gladeui.Widget) – TheGladeui.Widget
- context (Gladeui.XmlContext) – TheGladeui.XmlContext
- node (Gladeui.XmlNode) – TheGladeui.XmlNode
 - This function is called to write widget to node when writing xml files (after writing children) 
- widget (
 
- 
classmethod 
Property Details¶
- 
Gladeui.WidgetAdaptor.props.book¶
- Name: - book- Type: - str- Default Value: - None- Flags: - READABLE,- WRITABLE,- CONSTRUCT_ONLY- DevHelp search namespace for this widget class 
- 
Gladeui.WidgetAdaptor.props.catalog¶
- Name: - catalog- Type: - str- Default Value: - None- Flags: - READABLE,- WRITABLE,- CONSTRUCT_ONLY- The name of the widget catalog this class was declared by 
- 
Gladeui.WidgetAdaptor.props.cursor¶
- Name: - cursor- Type: - int- Default Value: - None- Flags: - READABLE- A cursor for inserting widgets in the UI 
- 
Gladeui.WidgetAdaptor.props.generic_name¶
- Name: - generic-name- Type: - str- Default Value: - None- Flags: - READABLE,- WRITABLE,- CONSTRUCT_ONLY- Used to generate names of new widgets 
- 
Gladeui.WidgetAdaptor.props.icon_name¶
- Name: - icon-name- Type: - str- Default Value: - 'widget-gtk-frame'- Flags: - READABLE,- WRITABLE,- CONSTRUCT_ONLY- The icon name 
- 
Gladeui.WidgetAdaptor.props.name¶
- Name: - name- Type: - str- Default Value: - None- Flags: - READABLE,- WRITABLE,- CONSTRUCT_ONLY- Name of the class 
- 
Gladeui.WidgetAdaptor.props.query¶
- Name: - query- Type: - bool- Default Value: - False- Flags: - READABLE,- WRITABLE- Whether the adaptor should query the use or not 
- 
Gladeui.WidgetAdaptor.props.special_child_type¶
- Name: - special-child-type- Type: - str- Default Value: - None- Flags: - READABLE,- WRITABLE,- CONSTRUCT_ONLY- Holds the name of the packing property to depict special children for this container class 
- 
Gladeui.WidgetAdaptor.props.title¶
- Name: - title- Type: - str- Default Value: - None- Flags: - READABLE,- WRITABLE- Translated title for the class used in the glade UI 
- 
Gladeui.WidgetAdaptor.props.type¶
- Name: - type- Type: - GObject.GType- Default Value: - <GType void>- Flags: - READABLE,- WRITABLE,- CONSTRUCT_ONLY- GObject.GTypeof the class