PropertyAnimationTarget#

Added in version 1.2.

class PropertyAnimationTarget(**properties: Any)#

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 the property_name property on object.

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 the pspec property on object.

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 by self.

Added in version 1.2.

Properties#

class PropertyAnimationTarget
props.object: Object#

The type of the None singleton.

Added in version 1.2.

props.pspec: ParamSpec#

The type of the None singleton.

Added in version 1.2.