create_animation#

static CommonWindowUtils.create_animation(obj, property_name, start_val, end_val)[source]#

Creates an animation with specified parameters.

Parameters:
obj: QObject

The object on which the animation will be applied.

property_name: str

The name of the property to animate.

start_val: Any

The initial value of the property.

end_val: Any

The final value of the property.

Returns:
QPropertyAnimation

The created animation.