AbstractAnimationMixin
Base classes
Name | Children | Inherits |
---|---|---|
ObjectMixin prettyqt.core.object |
Subclasses
Class | Module | Description |
---|---|---|
AbstractAnimation | prettyqt.core.abstractanimation | |
VariantAnimationMixin | prettyqt.core.variantanimation | |
PauseAnimation | prettyqt.core.pauseanimation | |
AnimationGroupMixin | prettyqt.core.animationgroup |
⋔ Inheritance diagram
graph TD
1473299791600["core.AbstractAnimationMixin"]
1473299815024["core.ObjectMixin"]
140713234304496["builtins.object"]
1473299815024 --> 1473299791600
140713234304496 --> 1473299815024
🛈 DocStrings
Bases: ObjectMixin
The base of all animations.
Source code in prettyqt\core\abstractanimation.py
get_direction() -> DirectionStr
get_state() -> StateStr
restart_animation(policy: DeletionPolicyStr | core.QAbstractAnimation.DeletionPolicy = 'keep')
Restart the animation.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
policy |
DeletionPolicyStr | DeletionPolicy
|
animation policy |
'keep'
|
Source code in prettyqt\core\abstractanimation.py
set_direction(direction: DirectionStr | core.QAbstractAnimation.Direction)
Set animation direction.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
direction |
DirectionStr | Direction
|
animation direction |
required |
start_animation(policy: DeletionPolicyStr | core.QAbstractAnimation.DeletionPolicy = 'keep', interval: int = 0, single_shot: bool = True)
Start the animation.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
policy |
DeletionPolicyStr | DeletionPolicy
|
animation policy |
'keep'
|
interval |
int
|
time interval / delay for timer |
0
|
single_shot |
bool
|
whether animation gets triggered once or in intervals |
True
|