Skip to content

ParallelAnimationGroup

Qt Base Class: QParallelAnimationGroup

Signature: QParallelAnimationGroup(self, parent: Optional[PySide6.QtCore.QObject] = None) -> None

Base classes

Name Children Inherits
AnimationGroupMixin
prettyqt.core.animationgroup
QParallelAnimationGroup
PySide6.QtCore
QParallelAnimationGroup(self, parent: Optional[PySide6.QtCore.QObject] \= None) -> None

Subclasses

Class Module Description
ZoomAnimation prettyqt.animations.zoomanimation

⋔ Inheritance diagram

graph TD
  1473299842352["core.ParallelAnimationGroup"]
  1473299826736["core.AnimationGroupMixin"]
  1473299791600["core.AbstractAnimationMixin"]
  1473299815024["core.ObjectMixin"]
  140713234304496["builtins.object"]
  1473289073552["QtCore.QParallelAnimationGroup"]
  1473289072576["QtCore.QAnimationGroup"]
  1473289055008["QtCore.QAbstractAnimation"]
  1473288842240["QtCore.QObject"]
  1473291690208["Shiboken.Object"]
  1473299826736 --> 1473299842352
  1473299791600 --> 1473299826736
  1473299815024 --> 1473299791600
  140713234304496 --> 1473299815024
  1473289073552 --> 1473299842352
  1473289072576 --> 1473289073552
  1473289055008 --> 1473289072576
  1473288842240 --> 1473289055008
  1473291690208 --> 1473288842240
  140713234304496 --> 1473291690208

🛈 DocStrings

Bases: AnimationGroupMixin, QParallelAnimationGroup

Parallel group of animations.

Source code in prettyqt\core\parallelanimationgroup.py
class ParallelAnimationGroup(core.AnimationGroupMixin, core.QParallelAnimationGroup):
    """Parallel group of animations."""

    def set_duration(self, duration: int):
        for anim in self:
            match anim:
                # I dont think we need to support nested Animations here..
                case core.QVariantAnimation():
                    anim.setDuration(duration)
                case _:
                    raise TypeError("set_duration only works with QVariantAnimations.")

⌗ Property table

Qt Property Type Doc
objectName QString
state QAbstractAnimation::State
loopCount int
currentTime int
currentLoop int
direction QAbstractAnimation::Direction
duration int