bibliopixel.animation.indexed module¶
-
class
bibliopixel.animation.indexed.Indexed(layout, animations=None, **kwds)[source]¶ Bases:
bibliopixel.animation.collection.CollectionAn
Indexedis abibliopixel.animation.Collectionwhich keeps track of the current animation through an index into the list of animations, and gets a callback after that index changes.An
Indexedhas two properties.indexis a mutable property indexing the current animation in the list of animations.current_animationreturns the animation at positionindexor 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.
-