Gladeui.Property¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
The |
||
r/w |
If the property is optional, this is its enabled state |
||
r/w |
Comment for translators |
||
r/w |
Context for translation |
||
r/w |
Whether this property is translatable |
||
r/w |
Where applicable, precision to use on editors |
||
r/w |
This gives backends control to set property sensitivity |
||
r |
Priority information for the property editor to act on |
Signals¶
- Inherited:
Name |
Short Description |
---|---|
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class Gladeui.Property(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new(def_, widget, value)¶
- Parameters:
def (
Gladeui.PropertyDef
) – AGladeui.PropertyDef
defining this propertywidget (
Gladeui.Widget
) – TheGladeui.Widget
this property is created forvalue (
GObject.Value
) – The initialGObject.Value
of the property orNone
(theGladeui.Property
will assume ownership of value)
- Returns:
The newly created
Gladeui.Property
- Return type:
Creates a
Gladeui.Property
of type klass for widget with value; if value isNone
, then the introspected default value for that property will be used.
- classmethod pop_superuser()¶
- classmethod push_superuser()¶
- add_object(object)¶
- Parameters:
object (
GObject.Object
) – TheGObject.Object
to add
Adds object to the object list in self.
Note: This function expects self to be a
Gladeui.ParamSpecObjects
orGObject.ParamSpecObject
type property.
- dup(widget)¶
- Parameters:
widget (
Gladeui.Widget
) – AGladeui.Widget
- Returns:
A newly duplicated property based on the new widget
- Return type:
- equals_value(value)¶
- Parameters:
value (
GObject.Value
) – aGObject.Value
- Returns:
Whether this property is equal to the value provided
- Return type:
- get_def()¶
- Returns:
- Return type:
Get the
Gladeui.PropertyDef
this property was created for.
- get_default(value)¶
- Parameters:
value (
GObject.Value
) – aGObject.Value
Retrieve the default property value
- get_save_always()¶
- Returns:
whether this property is special cased to always be saved regardless of its default value.
- Return type:
- get_state()¶
- Return type:
- get_value(value)¶
- Parameters:
value (
GObject.Value
) – aGObject.Value
Retrieve the property value
- get_widget()¶
- Returns:
- Return type:
- inline_value()¶
- Return type:
- load()¶
Loads the value of self from the corresponding object instance
- original_default()¶
- Returns:
Whether this property is at its original default value
- Return type:
- original_reset()¶
Resets this property to its original default value
- read(project, node)¶
- Parameters:
project (
Gladeui.Project
) – theGladeui.Project
node (
Gladeui.XmlNode
) – theGladeui.XmlNode
to read, will either be a ‘widget’ node or a ‘child’ node for packing properties.
Read the value and any attributes for self from node, assumes self is being loaded for project
Note that object values will only be resolved after the project is completely loaded
- remove_object(object)¶
- Parameters:
object (
GObject.Object
) – TheGObject.Object
to add
Removes object from the object list in self.
Note: This function expects self to be a
Gladeui.ParamSpecObjects
orGObject.ParamSpecObject
type property.
- reset()¶
Resets this property to its default value
- set_save_always(setting)¶
- Parameters:
setting (
bool
) – the value to set
Sets whether this property 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).
- set_value(value)¶
- Parameters:
value (
GObject.Value
) – aGObject.Value
- Returns:
Whether the property was successfully set.
- Return type:
Sets the property’s value
- set_widget(widget)¶
- Parameters:
widget (
Gladeui.Widget
) – aGladeui.Widget
- sync()¶
Synchronize the object with this property
- write(context, node)¶
- Parameters:
context (
Gladeui.XmlContext
) – AGladeui.XmlContext
node (
Gladeui.XmlNode
) – AGladeui.XmlNode
Write self to node
- do_dup(widget) virtual¶
- Parameters:
widget (
Gladeui.Widget
) – AGladeui.Widget
- Returns:
A newly duplicated property based on the new widget
- Return type:
- do_equals_value(value) virtual¶
- Parameters:
value (
GObject.Value
) – aGObject.Value
- Returns:
Whether this property is equal to the value provided
- Return type:
- do_get_value(value) virtual¶
- Parameters:
value (
GObject.Value
) – aGObject.Value
Retrieve the property value
- do_load() virtual¶
Loads the value of property from the corresponding object instance
- do_set_value(value) virtual¶
- Parameters:
value (
GObject.Value
) – aGObject.Value
- Returns:
Whether the property was successfully set.
- Return type:
Sets the property’s value
- do_sync() virtual¶
Synchronize the object with this property
- do_tooltip_changed(tooltip, insensitive_tooltip, support_warning) virtual¶
- do_value_changed(old_value, new_value) virtual¶
- Parameters:
old_value (
GObject.Value
) –new_value (
GObject.Value
) –
Signal Details¶
- Gladeui.Property.signals.tooltip_changed(property, object, p0, p1)¶
- Signal Name:
tooltip-changed
- Flags:
- Parameters:
property (
Gladeui.Property
) – The object which received the signalobject (
str
) –p0 (
str
) –p1 (
str
) –
Property Details¶
- Gladeui.Property.props.class_¶
- Name:
class
- Type:
- Default Value:
- Flags:
The
Gladeui.PropertyDef
for this property
- Gladeui.Property.props.enabled¶
-
If the property is optional, this is its enabled state
- Gladeui.Property.props.i18n_comment¶
-
Comment for translators
- Gladeui.Property.props.i18n_context¶
-
Context for translation
- Gladeui.Property.props.i18n_translatable¶
-
Whether this property is translatable
- Gladeui.Property.props.precision¶
-
Where applicable, precision to use on editors
- Gladeui.Property.props.sensitive¶
-
This gives backends control to set property sensitivity