Dazzle.PropertiesGroup¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
The source object for the properties |
||
r/w/co |
A type the object must conform to. |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Dazzle.PropertiesGroup(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new(object)¶
- Parameters:
object (
GObject.Object
) – The object containing the properties- Returns:
- Return type:
This creates a new
Dazzle.PropertiesGroup
to create stateful actions around properties in object.Call
Dazzle.PropertiesGroup.add_property
() to add a property to action name mapping for this group. Until you’ve called this, no actions are mapped.Note that
Dazzle.PropertiesGroup
only holds a weak reference to object and therefore you must keep object alive elsewhere.New in version 3.26.
- classmethod new_for_type(object_type)¶
- Parameters:
object_type (
GObject.GType
) – AGObject.ObjectClass
based type- Returns:
- Return type:
This creates a new
Dazzle.PropertiesGroup
for which the initial object isNone
.Set object_type to a type of a class which is a
GObject.Object
-based type.
- add_all_properties()¶
This function will try to add all properties found on the target instance to the group. Only properties that are supported by the
Dazzle.PropertiesGroup
will be added.The action name of all added properties will be identical to their property name.
New in version 3.26.
- add_property(name, property_name)¶
-
Adds a new stateful action named name which maps to the underlying property property_name of
Dazzle.PropertiesGroup
:object
.New in version 3.26.
- add_property_full(name, property_name, flags)¶
- Parameters:
name (
str
) – the name of the actionproperty_name (
str
) – the name of the propertyflags (
Dazzle.PropertiesFlags
) – optional flags for the action
Adds a new stateful action named name which maps to the underlying property property_name of
Dazzle.PropertiesGroup
:object
.Seting flags allows you to tweak some settings about the action.
New in version 3.26.
- remove(name)¶
- Parameters:
name (
str
) – the name of the action
Removes an action from self that was previously added with
Dazzle.PropertiesGroup.add_property
(). name should match the name parameter to that function.New in version 3.26.
Property Details¶
- Dazzle.PropertiesGroup.props.object¶
- Name:
object
- Type:
- Default Value:
- Flags:
The source object for the properties
- Dazzle.PropertiesGroup.props.object_type¶
- Name:
object-type
- Type:
- Default Value:
<GType GObject>
- Flags:
A type the object must conform to.