Gladeui.Widget¶
| Subclasses: | None | 
|---|
Methods¶
| Inherited: | GObject.Object (37) | 
|---|---|
| Structs: | GObject.ObjectClass (5) | 
Virtual Methods¶
| Inherited: | GObject.Object (7) | 
|---|
| do_add_child(child, at_mouse) | |
| do_add_signal_handler(signal_handler) | |
| do_button_press_event(event) | |
| do_button_release_event(event) | |
| do_change_signal_handler(new_signal_handler) | |
| do_event(event) | |
| do_motion_notify_event(event) | |
| do_remove_child(child) | |
| do_remove_signal_handler(signal_handler) | |
| do_replace_child(old_object, new_object) | 
Properties¶
| Name | Type | Flags | Short Description | 
|---|---|---|---|
| adaptor | Gladeui.WidgetAdaptor | r/w/co | The class adaptor for the associated widget | 
| anarchist | bool | r/w/co | Whether this composite child is an ancestral child or an anarchist child | 
| composite | bool | r/w | Whether this widget is the template for a composite widget | 
| internal | str | r/w/c | The internal name of the widget | 
| internal-name | str | w/co | A generic name prefix for internal widgets | 
| name | str | r/w/c | The name of the widget | 
| object | GObject.Object | r/w/c | The object associated | 
| parent | Gladeui.Widget | r/w/c | A pointer to the parenting Gladeui.Widget | 
| project | Gladeui.Project | r/w/c | The glade project that this widget belongs to | 
| properties | int | r/w/co | A list of GladeProperties | 
| reason | int | r/w/co | A Gladeui.CreateReasonfor this creation | 
| support-warning | str | r | A warning string about version mismatches | 
| template | Gladeui.Widget | w/co | A Gladeui.Widgettemplate to base a new widget on | 
| template-exact | bool | w/co | Whether we are creating an exact duplicate when using a template | 
| toplevel-height | int | r/w | The height of the widget when toplevel in the GladeDesignLayout | 
| toplevel-width | int | r/w | The width of the widget when toplevel in the GladeDesignLayout | 
| visible | bool | r | Whether the widget is visible or not | 
Signals¶
| Inherited: | GObject.Object (1) | 
|---|
| Name | Short Description | 
|---|---|
| add-signal-handler | |
| button-press-event | |
| button-release-event | |
| change-signal-handler | |
| motion-notify-event | |
| remove-signal-handler | |
| support-changed | Emitted when property and signal support metadatas and messages have been updated. | 
Fields¶
| Inherited: | GObject.Object (1) | 
|---|
| Name | Type | Access | Description | 
|---|---|---|---|
| parent_instance | GObject.InitiallyUnowned | r | 
Class Details¶
- 
class Gladeui.Widget(**kwargs)¶
- Bases: - GObject.InitiallyUnowned- Abstract: - No - Structure: - Gladeui.WidgetClass- 
classmethod get_device_from_event(event)¶
- Parameters: - event ( - Gdk.Event) – a- Gdk.Event- Returns: - the associated - Gdk.Devicefor this glade widget event.- Return type: - Gdk.Device- Currently only motion and button events are handled (see GLADE_WIDGET_IS_EVENT) - Deprecated since version ???: use - Gdk.Event.get_device() instead.
 - 
classmethod get_from_gobject(object)¶
- Parameters: - object ( - objector- None) – A- GObject.Objectcontaining the widget- Returns: - a - Gladeui.Widget- Return type: - Gladeui.Widget
 - 
classmethod pop_superuser()¶
- Unsets superuser mode 
 - 
classmethod push_superuser()¶
- Sets superuser mode 
 - 
classmethod read(project, parent, node, internal)¶
- Parameters: - project (Gladeui.Project) – aGladeui.Project
- parent (Gladeui.WidgetorNone) – The parentGladeui.WidgetorNone
- node (Gladeui.XmlNode) – aGladeui.XmlNode
- internal (strorNone) – the name of an internal child name
 - Returns: - a new - Gladeui.Widgetfor project, based on node- Return type: - Creates a new - Gladeui.Widgetfrom a XML node.- If node is a template and its parent class is abstract/non instantiatable, Glade will use a class with the GladeInstantiable prefix instead. - For example, with a - Gtk.Bintemplate Glade will GladeInstantiableGtkBin class
- project (
 - 
classmethod superuser()¶
- Return type: - bool- Checks if we are in superuser mode. - Superuser mode is when we are - Loading a project
- Dupping a widget recursively
- Rebuilding an instance for a construct-only property
 - In these cases, we must act like a load, this should be checked from the plugin when implementing containers, when undo/redo comes around, the plugin is responsable for maintaining the same container size when widgets are added/removed. 
 - 
adaptor_create_internal(internal_object, internal_name, parent_name, anarchist, reason)¶
- Parameters: - internal_object (GObject.Object) – theGObject.Object
- internal_name (str) – a string identifier for this internal widget.
- parent_name (str) – the generic name of the parent used for fancy child names.
- anarchist (bool) – Whether or not this widget is a widget outside of the parent’s hierarchy (like a popup window)
- reason (Gladeui.CreateReason) – TheGladeui.CreateReasonfor which this internal widget was created (usually just pass the reason from the post_create function; note also this is used only by the plugin code so pass something useful here).
 - Returns: - a freshly created - Gladeui.Widgetwrapper object for the internal_object of name internal_name- Return type: - A convenience function to create a - Gladeui.Widgetof the prescribed type for internal widgets.
- internal_object (
 - 
add_child(child, at_mouse)¶
- Parameters: - child (Gladeui.Widget) – theGladeui.Widgetto add
- at_mouse (bool) – whether the added widget should be added at the current mouse position
 - Adds child to self in a generic way for this - Gladeui.Widgetparent.
- child (
 - 
add_prop_ref(property)¶
- Parameters: - property ( - Gladeui.Property) – the- Gladeui.Property- Adds property to self ‘s list of referenced properties. - Note: this is used to track properties on other objects that refer to this object. 
 - 
add_signal_handler(signal_handler)¶
- Parameters: - signal_handler ( - Gladeui.Signal) – The- Gladeui.Signal- Adds a signal handler for self 
 - 
add_verify(child, user_feedback)¶
- Parameters: - child (Gladeui.Widget) – The childGladeui.Widgetto add
- 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 self. - 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.
- child (
 - 
change_signal_handler(old_signal_handler, new_signal_handler)¶
- Parameters: - old_signal_handler (Gladeui.Signal) – the oldGladeui.Signal
- new_signal_handler (Gladeui.Signal) – the newGladeui.Signal
 - Changes a - Gladeui.Signalon self
- old_signal_handler (
 - 
child_get_property(child, property_name, value)¶
- Parameters: - child (Gladeui.Widget) – TheGladeui.Widgetchild
- property_name (str) – The id of the property
- value (GObject.Value) – The GValue
 - Gets child’s packing property identified by property_name. 
- child (
 - 
child_set_property(child, property_name, value)¶
- Parameters: - child (Gladeui.Widget) – TheGladeui.Widgetchild
- property_name (str) – The id of the property
- value (GObject.Value) – The GValue
 - Sets child’s packing property identified by property_name to value. 
- child (
 - 
copy_properties(template_widget, copy_parentless, exact)¶
- Parameters: - template_widget (Gladeui.Widget) – a ‘src’Gladeui.Widget
- copy_parentless (bool) – whether to copy reffed widgets at all
- exact (bool) – whether to copy reffed widgets exactly
 - Sets properties in self based on the values of matching properties in template_widget 
- template_widget (
 - 
copy_signals(template_widget)¶
- Parameters: - template_widget ( - Gladeui.Widget) – a ‘src’- Gladeui.Widget- Sets signals in self based on the values of matching signals in template_widget 
 - 
create_editor_property(property, packing, use_command)¶
- Parameters: - Returns: - A newly created and connected - Gladeui.EditorProperty- Return type: - This is a convenience function to create a - Gladeui.EditorPropertycorresponding to property
 - 
depends(other)¶
- Parameters: - other ( - Gladeui.Widget) – another- Gladeui.Widget- Returns: - Trueif self depends on other.- Return type: - bool- Determines whether self is somehow dependent on other, in which case it should be serialized after other. - A widget is dependent on another widget. It does not take into account for children dependencies. - Deprecated since version 3.18. 
 - 
dup(exact)¶
- Parameters: - exact ( - bool) – whether or not to creat an exact duplicate- Returns: - The newly created - Gladeui.Widget- Return type: - Gladeui.Widget- Creates a deep copy of - Gladeui.Widget. if exact is specified, the widget name is preserved and signals are carried over (this is used to maintain names & signals in Cut/Paste context as opposed to Copy/Paste contexts).
 - 
dup_properties(template_props, as_load, copy_parentless, exact)¶
- Parameters: - template_props ([Gladeui.Property]) – theGladeui.Propertylist to copy
- as_load (bool) – whether to behave as if loading the project
- copy_parentless (bool) – whether to copy reffed widgets at all
- exact (bool) – whether to copy reffed widgets exactly
 - Returns: - A newly allocated - GLib.Listof new- Gladeui.Propertyobjects.- Return type: - Copies a list of properties, if as_load is specified, then properties that are not saved to the glade file are ignored. 
- template_props ([
 - 
ensure_name(project, use_command)¶
- Parameters: - project (Gladeui.Project) –
- use_command (bool) –
 
- project (
 - 
event(event)¶
- Parameters: - event ( - Gdk.Event) – A- Gdk.Event- Returns: - whether the event was handled or not. - Return type: - bool- Feed an event to be handled on the project - Gladeui.Widgethierarchy.
 - 
find_child(name)¶
- Parameters: - name ( - str) – child name- Returns: - The child of widget or - Noneif it was not found.- Return type: - Gladeui.Widgetor- None- Finds a child widget named name. 
 - 
generate_path_name()¶
- Returns: - A newly allocated string - Return type: - str- Creates a user friendly name to describe project widgets 
 - 
get_action(action_path)¶
- Parameters: - action_path ( - str) – a full action path including groups- Returns: - the action or - Noneif not found.- Return type: - Gladeui.WidgetActionor- None- Returns a - Gladeui.WidgetActionobject indentified by action_path.
 - 
get_actions()¶
- Returns: - the list of - Gladeui.WidgetAction- Return type: - [ - Gladeui.WidgetAction]
 - 
get_adaptor()¶
- Returns: - the - Gladeui.WidgetAdaptorof self- Return type: - Gladeui.WidgetAdaptor
 - 
get_children()¶
- Returns: - The children of widget - This differs from a direct call to - Gladeui.WidgetAdaptor.get_children() as it only returns children which have an associated- Gladeui.Widget. This function will not return any placeholders or internal composite children that have not been exposed for Glade configuration- Return type: - [ - GObject.Object]- Fetches any wrapped children of self. 
 - 
get_display_name()¶
- Returns: - a pointer to self’s displayable name - This should be used to display the widget’s ID in the UI, it will automatically return the class name if the widget has no name. - Return type: - str
 - 
get_is_composite()¶
- Returns: - whether self is composite. - Return type: - bool- Checks if self is a composite template to be used with - Gtk.WidgetClass.set_template().
 - 
get_locker()¶
- Returns: - a - Gladeui.Widgetor- Noneif none is locked- Return type: - Gladeui.Widgetor- None- Get the current locked widget, locked widgets cannot be removed from the project until unlocked 
 - 
get_name()¶
- Returns: - a pointer to self’s name - This is what will be serialized as the widget’s ID, unless the name currently carries the - Gladeui.UNNAMED_PREFIX.- Return type: - str
 - 
get_object()¶
- Returns: - the - GObject.Objectassociated with self- Return type: - GObject.Object
 - 
get_pack_action(action_path)¶
- Parameters: - action_path ( - str) – a full action path including groups- Returns: - the action or - Noneif not found.- Return type: - Gladeui.WidgetActionor- None- Returns a - Gladeui.WidgetActionobject indentified by action_path.
 - 
get_pack_actions()¶
- Returns: - the list of - Gladeui.WidgetAction- Return type: - [ - Gladeui.WidgetAction]
 - 
get_pack_property(id_property)¶
- Parameters: - id_property ( - str) – a string naming a- Gladeui.Property- Returns: - the - Gladeui.Propertyin self named id_property- Return type: - Gladeui.Propertyor- None
 - 
get_packing_properties()¶
- Returns: - the list of - Gladeui.Property- Return type: - [ - Gladeui.Property]
 - 
get_parent()¶
- Returns: - The parenting - Gladeui.Widget- Return type: - Gladeui.Widget
 - 
get_parentless_reffed_widgets()¶
- Returns: - a list of - Gladeui.Property- Return type: - [ - Gladeui.Property]
 - 
get_parentless_widget_ref()¶
- Returns: - a - Gladeui.Property- Return type: - Gladeui.Property
 - 
get_project()¶
- Returns: - the - Gladeui.Projectthat self belongs to- Return type: - Gladeui.Project
 - 
get_properties()¶
- Returns: - the list of - Gladeui.Property- Return type: - [ - Gladeui.Property]
 - 
get_property(id_property)¶
- Parameters: - id_property ( - str) – a string naming a- Gladeui.Property- Returns: - the - Gladeui.Propertyin self named id_property- Return type: - Gladeui.Propertyor- None
 - 
get_signal_list()¶
- Returns: - a newly allocated - GLib.Listof- Gladeui.Signal, the caller must call g_list_free() to free the list.- Return type: - [ - Gladeui.Signal]- Compiles a list of - Gladeui.Signalelements
 - 
get_signal_model()¶
- Returns: - a - Gtk.TreeModelthat can be used to view the widget’s signals. The signal model is owned by the- Gladeui.Widget.- Return type: - Gtk.TreeModel
 - 
get_toplevel()¶
- Returns: - The toplevel - Gladeui.Widgetin the hierarchy (or self)- Return type: - Gladeui.Widget
 - 
has_decendant(type)¶
- Parameters: - type ( - GObject.GType) – a- GObject.GType- Returns: - whether this - Gladeui.Widgethas any descendants of type type or any descendants that implement the type interface- Return type: - bool
 - 
hide()¶
- Hide self 
 - 
is_ancestor(ancestor)¶
- Parameters: - ancestor ( - Gladeui.Widget) – another- Gladeui.Widget- Returns: - Trueif ancestor contains self as a child, grandchild, great grandchild, etc.- Return type: - bool- Determines whether self is somewhere inside ancestor, possibly with intermediate containers. 
 - 
list_locked_widgets()¶
- Returns: - the list of - Gladeui.Widget- Return type: - [ - Gladeui.Widget]
 - 
list_prop_refs()¶
- Returns: - a list of - Gladeui.Property- Return type: - [ - Gladeui.Property]
 - 
list_signal_handlers(signal_name)¶
- Parameters: - signal_name ( - str) – the name of the signal- Returns: - A - GLib.PtrArrayof- Gladeui.Signalfor signal_name- Return type: - [ - Gladeui.Signal]
 - 
lock(locked)¶
- Parameters: - locked ( - Gladeui.Widget) – The- Gladeui.Widgetto lock- Sets locked to be in a locked up state spoken for by self, locked widgets cannot be removed from the project until unlocked. 
 - 
object_get_property(property_name, value)¶
- Parameters: - property_name (str) – The property identifier
- value (GObject.Value) – TheGObject.Value
 - This function retrieves the value of the property property_name on the runtime object of self and sets it in value. 
- property_name (
 - 
object_set_property(property_name, value)¶
- Parameters: - property_name (str) – The property identifier
- value (GObject.Value) – TheGObject.Value
 - This function applies value to the property property_name on the runtime object of self. 
- property_name (
 - 
pack_property_default(id_property)¶
- Parameters: - id_property ( - str) – a string naming a- Gladeui.Property- Returns: - whether whether id_property was found and is currently set to it’s default value. - Return type: - bool
 - 
pack_property_reset(id_property)¶
- Parameters: - id_property ( - str) – a string naming a- Gladeui.Property- Returns: - whether id_property was found or not. - Return type: - bool- Resets id_property in self’s packing properties to it’s default value 
 - 
pack_property_set_enabled(id_property, enabled)¶
- Parameters: - id_property (str) – a string naming aGladeui.Property
- enabled (bool) – setting enabled or disabled
 - Returns: - whether id_property was found or not. - Return type: - Sets the enabled state of id_property in self’s packing properties; this is used for optional properties. 
- id_property (
 - 
pack_property_set_save_always(id_property, setting)¶
- Parameters: - id_property (str) – a string naming aGladeui.Property
- setting (bool) – the setting
 - Returns: - whether id_property was found or not. - Return type: - Sets whether id_property in self should be special cased to always be saved regardless of its default value. (used for some special cases like properties that are assigned initial values in composite widgets or derived widget code). 
- id_property (
 - 
pack_property_set_sensitive(id_property, sensitive, reason)¶
- Parameters: - id_property (str) – a string naming aGladeui.Property
- sensitive (bool) – setting sensitive or insensitive
- reason (str) – a description of why the user cant edit this property which will be used as a tooltip
 - Returns: - whether id_property was found or not. - Return type: - Sets the sensitivity of id_property in self’s packing properties. 
- id_property (
 - 
pack_property_string(id_property, value)¶
- Parameters: - id_property (str) – a string naming aGladeui.Property
- value (GObject.Value) – theGObject.Valueto print orNone
 - Returns: - A newly allocated string representing id_property - Return type: - Same as - Gladeui.Widget.property_string() but for packing properties.
- id_property (
 - 
placeholder_relation(widget)¶
- Parameters: - widget ( - Gladeui.Widget) – The child- Gladeui.Widget- Returns: - whether to use placeholders for this relationship. - Return type: - bool- Returns whether placeholders should be used in operations concerning this parent & child. - Currently that criteria is whether self is a - Gtk.Container, widget is a- Gtk.Widgetand the parent adaptor has been marked to use placeholders.
 - 
property_default(id_property)¶
- Parameters: - id_property ( - str) – a string naming a- Gladeui.Property- Returns: - whether whether id_property was found and is currently set to it’s default value. - Return type: - bool
 - 
property_original_default(id_property)¶
- Parameters: - id_property ( - str) – a string naming a- Gladeui.Property- Returns: - whether whether id_property was found and is currently set to it’s original default value. - Return type: - bool
 - 
property_reset(id_property)¶
- Parameters: - id_property ( - str) – a string naming a- Gladeui.Property- Returns: - whether id_property was found or not. - Return type: - bool- Resets id_property in self to it’s default value 
 - 
property_set_enabled(id_property, enabled)¶
- Parameters: - id_property (str) – a string naming aGladeui.Property
- enabled (bool) – setting enabled or disabled
 - Returns: - whether id_property was found or not. - Return type: - Sets the enabled state of id_property in self; this is used for optional properties. 
- id_property (
 - 
property_set_save_always(id_property, setting)¶
- Parameters: - id_property (str) – a string naming aGladeui.Property
- setting (bool) – the setting
 - Returns: - whether id_property was found or not. - Return type: - Sets whether id_property in self should be special cased to always be saved regardless of its default value. (used for some special cases like properties that are assigned initial values in composite widgets or derived widget code). 
- id_property (
 - 
property_set_sensitive(id_property, sensitive, reason)¶
- Parameters: - id_property (str) – a string naming aGladeui.Property
- sensitive (bool) – setting sensitive or insensitive
- reason (str) – a description of why the user cant edit this property which will be used as a tooltip
 - Returns: - whether id_property was found or not. - Return type: - Sets the sensitivity of id_property in self 
- id_property (
 - 
property_string(id_property, value)¶
- Parameters: - id_property (str) – a string naming aGladeui.Property
- value (GObject.Value) – theGObject.Valueto print orNone
 - Returns: - A newly allocated string representing id_property - Return type: - Creates a printable string representing id_property in self, if value is specified it will be used in place of id_property’s real value (this is a convenience function to print/debug properties usually from plugin backends). 
- id_property (
 - 
read_child(node)¶
- Parameters: - node ( - Gladeui.XmlNode) – a- Gladeui.XmlNode- Reads in a child widget from the xml (handles ‘child’ tag) 
 - 
rebuild()¶
- Replaces the current widget instance with a new one while preserving all properties children and takes care of reparenting. 
 - 
remove_child(child)¶
- Parameters: - child ( - Gladeui.Widget) – the- Gladeui.Widgetto add- Removes child from self in a generic way for this - Gladeui.Widgetparent.
 - 
remove_prop_ref(property)¶
- Parameters: - property ( - Gladeui.Property) – the- Gladeui.Property- Removes property from self ‘s list of referenced properties. - Note: this is used to track properties on other objects that refer to this object. 
 - 
remove_property(id_property)¶
- Parameters: - id_property ( - str) – the name of the property- Removes the - Gladeui.Propertyindicated by id_property from self (this is intended for use in the plugin, to remove properties from composite children that don’t make sense to allow the user to specify, notably - properties that are proxied through the composite widget’s properties or style properties).
 - 
remove_signal_handler(signal_handler)¶
- Parameters: - signal_handler ( - Gladeui.Signal) – The- Gladeui.Signal- Removes a signal handler from self 
 - 
replace(old_object, new_object)¶
- Parameters: - old_object (GObject.Object) – aGObject.Object
- new_object (GObject.Object) – aGObject.Object
 - Replaces a - GObject.Objectwith another- GObject.Objectinside a- Gladeui.Widgetwhich behaves as a container.- Note that both GObjects must be owned by a - Gladeui.Widget.
- old_object (
 - 
set_action_sensitive(action_path, sensitive)¶
- Parameters: - Returns: - whether action_path was found or not. - Return type: - Sets the sensitivity of action_path in self 
 - 
set_action_visible(action_path, visible)¶
- Parameters: - Returns: - whether action_path was found or not. - Return type: - Sets the visibility of action_path in self 
 - 
set_child_type_from_node(child, node)¶
- Parameters: - child (GObject.Object) –
- node (Gladeui.XmlNode) –
 
- child (
 - 
set_internal(internal)¶
- Parameters: - internal ( - str) – The internal name- Sets the internal name of self to internal 
 - 
set_is_composite(composite)¶
- Parameters: - composite ( - bool) – whether self should be a composite template- Set’s this widget to be toplevel composite object to be eventually used with - Gtk.WidgetClass.set_template()- Only one widget in a project should be composite. 
 - 
set_pack_action_sensitive(action_path, sensitive)¶
- Parameters: - Returns: - whether action_path was found or not. - Return type: - Sets the sensitivity of action_path in self 
 - 
set_pack_action_visible(action_path, visible)¶
- Parameters: - Returns: - whether action_path was found or not. - Return type: - Sets the visibility of action_path in self 
 - 
set_packing_properties(container)¶
- Parameters: - container ( - Gladeui.Widget) – The parent- Gladeui.Widget- Generates the packing_properties list of the widget, given the class of the container we are adding the widget to. If the widget already has packing_properties, but the container has changed, the current list is freed and replaced. 
 - 
set_parent(parent)¶
- Parameters: - parent ( - Gladeui.Widgetor- None) – the parenting- Gladeui.Widget(or- None)- sets the parenting - Gladeui.Widget
 - 
set_project(project)¶
- Parameters: - project ( - Gladeui.Project) – a- Gladeui.Project- Makes self belong to project. 
 - 
show()¶
- xlib.Displayself in it’s project’s- Gladeui.DesignView
 - 
support_changed()¶
- Notifies that support metadata has changed on the widget. 
 - 
unlock()¶
- Unlocks self so that it can be removed from the project again 
 - 
verify()¶
- Verify this widget for deprecation and versioning warnings. - This function will update the widget’s support warning. 
 - 
write(context, node)¶
- Parameters: - context (Gladeui.XmlContext) – AGladeui.XmlContext
- node (Gladeui.XmlNode) – AGladeui.XmlNode
 - Recursively writes out self and its children and appends the created - Gladeui.XmlNodeto node.
- context (
 - 
write_child(child, context, node)¶
- Parameters: - child (Gladeui.Widget) – The childGladeui.Widgetto write
- context (Gladeui.XmlContext) – AGladeui.XmlContext
- node (Gladeui.XmlNode) – AGladeui.XmlNode
 - Writes out a widget to the xml, takes care of packing properties and special child types. 
- child (
 - 
write_placeholder(object, context, node)¶
- Parameters: - object (GObject.Object) – AGladeui.Placeholder
- context (Gladeui.XmlContext) – AGladeui.XmlContext
- node (Gladeui.XmlNode) – AGladeui.XmlNode
 - Writes out a placeholder to the xml 
- object (
 - 
write_signals(context, node)¶
- Parameters: - context (Gladeui.XmlContext) –
- node (Gladeui.XmlNode) –
 
- context (
 - 
write_special_child_prop(object, context, node)¶
- Parameters: - object (GObject.Object) –
- context (Gladeui.XmlContext) –
- node (Gladeui.XmlNode) –
 
- object (
 - 
do_add_child(child, at_mouse) virtual¶
- Parameters: - child (Gladeui.Widget) – theGladeui.Widgetto add
- at_mouse (bool) – whether the added widget should be added at the current mouse position
 - Adds child to parent in a generic way for this - Gladeui.Widgetparent.
- child (
 - 
do_add_signal_handler(signal_handler) virtual¶
- Parameters: - signal_handler ( - Gladeui.Signal) – The- Gladeui.Signal- Adds a signal handler for widget 
 - 
do_change_signal_handler(new_signal_handler) virtual¶
- Parameters: - new_signal_handler ( - Gladeui.Signal) –
 - 
do_event(event) virtual¶
- Parameters: - event ( - Gdk.Event) – A- Gdk.Event- Returns: - whether the event was handled or not. - Return type: - bool- Feed an event to be handled on the project - Gladeui.Widgethierarchy.
 - 
do_remove_child(child) virtual¶
- Parameters: - child ( - Gladeui.Widget) – the- Gladeui.Widgetto add- Removes child from parent in a generic way for this - Gladeui.Widgetparent.
 - 
do_remove_signal_handler(signal_handler) virtual¶
- Parameters: - signal_handler ( - Gladeui.Signal) – The- Gladeui.Signal- Removes a signal handler from widget 
 - 
do_replace_child(old_object, new_object) virtual¶
- Parameters: - old_object (GObject.Object) –
- new_object (GObject.Object) –
 
- old_object (
 
- 
classmethod 
Signal Details¶
- 
Gladeui.Widget.signals.add_signal_handler(widget, arg1)¶
- Signal Name: - add-signal-handler- Flags: - Parameters: - widget (Gladeui.Widget) – The object which received the signal
- arg1 (Gladeui.Signal) – theGladeui.Signalthat was added to gladewidget.
 
- widget (
- Signal Name: - button-press-event- Flags: - Parameters: - widget (Gladeui.Widget) – The object which received the signal
- arg1 (Gdk.Event) – theGdk.Event
 - Return type: 
- widget (
- Signal Name: - button-release-event- Flags: - Parameters: - widget (Gladeui.Widget) – The object which received the signal
- arg1 (Gdk.Event) – theGdk.Event
 - Return type: 
- widget (
- 
Gladeui.Widget.signals.change_signal_handler(widget, arg1)¶
- Signal Name: - change-signal-handler- Flags: - Parameters: - widget (Gladeui.Widget) – The object which received the signal
- arg1 (Gladeui.Signal) – theGladeui.Signalthat changed
 
- widget (
- 
Gladeui.Widget.signals.motion_notify_event(widget, arg1)¶
- Signal Name: - motion-notify-event- Flags: - Parameters: - widget (Gladeui.Widget) – The object which received the signal
- arg1 (Gdk.Event) – theGdk.Event
 - Return type: 
- widget (
- 
Gladeui.Widget.signals.remove_signal_handler(widget, arg1)¶
- Signal Name: - remove-signal-handler- Flags: - Parameters: - widget (Gladeui.Widget) – The object which received the signal
- arg1 (Gladeui.Signal) – theGladeui.Signalthat was removed from gladewidget.
 
- widget (
- 
Gladeui.Widget.signals.support_changed(widget)¶
- Signal Name: - support-changed- Flags: - RUN_LAST- Parameters: - widget ( - Gladeui.Widget) – The object which received the signal- Emitted when property and signal support metadatas and messages have been updated. 
Property Details¶
- 
Gladeui.Widget.props.adaptor¶
- Name: - adaptor- Type: - Gladeui.WidgetAdaptor- Default Value: - None- Flags: - READABLE,- WRITABLE,- CONSTRUCT_ONLY- The class adaptor for the associated widget 
- 
Gladeui.Widget.props.anarchist¶
- Name: - anarchist- Type: - bool- Default Value: - False- Flags: - READABLE,- WRITABLE,- CONSTRUCT_ONLY- Whether this composite child is an ancestral child or an anarchist child 
- 
Gladeui.Widget.props.composite¶
- Name: - composite- Type: - bool- Default Value: - False- Flags: - READABLE,- WRITABLE- Whether this widget is the template for a composite widget 
- 
Gladeui.Widget.props.internal¶
- Name: - internal- Type: - str- Default Value: - None- Flags: - READABLE,- WRITABLE,- CONSTRUCT- The internal name of the widget 
- 
Gladeui.Widget.props.internal_name¶
- Name: - internal-name- Type: - str- Default Value: - None- Flags: - WRITABLE,- CONSTRUCT_ONLY- A generic name prefix for internal widgets 
- 
Gladeui.Widget.props.name¶
- Name: - name- Type: - str- Default Value: - None- Flags: - READABLE,- WRITABLE,- CONSTRUCT- The name of the widget 
- 
Gladeui.Widget.props.object¶
- Name: - object- Type: - GObject.Object- Default Value: - None- Flags: - READABLE,- WRITABLE,- CONSTRUCT- The object associated 
- 
Gladeui.Widget.props.parent¶
- Name: - parent- Type: - Gladeui.Widget- Default Value: - None- Flags: - READABLE,- WRITABLE,- CONSTRUCT- A pointer to the parenting - Gladeui.Widget
- 
Gladeui.Widget.props.project¶
- Name: - project- Type: - Gladeui.Project- Default Value: - None- Flags: - READABLE,- WRITABLE,- CONSTRUCT- The glade project that this widget belongs to 
- 
Gladeui.Widget.props.properties¶
- Name: - properties- Type: - int- Default Value: - None- Flags: - READABLE,- WRITABLE,- CONSTRUCT_ONLY- A list of GladeProperties 
- 
Gladeui.Widget.props.reason¶
- Name: - reason- Type: - int- Default Value: - 0- Flags: - READABLE,- WRITABLE,- CONSTRUCT_ONLY- A - Gladeui.CreateReasonfor this creation
- 
Gladeui.Widget.props.support_warning¶
- Name: - support-warning- Type: - str- Default Value: - None- Flags: - READABLE- A warning string about version mismatches 
- 
Gladeui.Widget.props.template¶
- Name: - template- Type: - Gladeui.Widget- Default Value: - None- Flags: - WRITABLE,- CONSTRUCT_ONLY- A - Gladeui.Widgettemplate to base a new widget on
- 
Gladeui.Widget.props.template_exact¶
- Name: - template-exact- Type: - bool- Default Value: - False- Flags: - WRITABLE,- CONSTRUCT_ONLY- Whether we are creating an exact duplicate when using a template 
- 
Gladeui.Widget.props.toplevel_height¶
- Name: - toplevel-height- Type: - int- Default Value: - -1- Flags: - READABLE,- WRITABLE- The height of the widget when toplevel in the GladeDesignLayout