bibliopixel.animation.indexed module¶
-
class
bibliopixel.animation.indexed.
Indexed
(layout, animations=None, **kwds)[source]¶ Bases:
bibliopixel.animation.collection.Collection
An
Indexed
is abibliopixel.animation.Collection
which keeps track of the current animation through an index into the list of animations, and gets a callback after that index changes.An
Indexed
has two properties.index
is a mutable property indexing the current animation in the list of animations.current_animation
returns the animation at positionindex
or None if it is out of the bounds of theCollection
.-
animation
¶ Returns: the selected animation based on self.index, or None if self.index is out of bounds
-
current_animation
¶ DEPRECATED: :returns: self.animation
-
index
¶ Returns int: index of the current animation within the Collection.
-