PropertyAnimationTarget#
Added in version 1.2.
Superclasses: AnimationTarget
, Object
An AnimationTarget
changing the value of a property of a
Object
instance.
Constructors#
- class PropertyAnimationTarget
- classmethod new(object: Object, property_name: str) AnimationTarget #
Creates a new
AdwPropertyAnimationTarget
for theproperty_name
property onobject
.Added in version 1.2.
- Parameters:
object – an object to be animated
property_name – the name of the property on
object
to animate
- classmethod new_for_pspec(object: Object, pspec: ParamSpec) AnimationTarget #
Creates a new
AdwPropertyAnimationTarget
for thepspec
property onobject
.Added in version 1.2.
- Parameters:
object – an object to be animated
pspec – the param spec of the property on
object
to animate
Methods#
- class PropertyAnimationTarget
- get_object() Object #
Gets the object animated by
self
.The
AdwPropertyAnimationTarget
instance does not hold a strong reference on the object; make sure the object is kept alive throughout the target’s lifetime.Added in version 1.2.
- get_pspec() ParamSpec #
Gets the
GParamSpec
of the property animated byself
.Added in version 1.2.