Package elisa :: Package plugins :: Package pigment :: Package animation :: Module implicit :: Class AnimatedObject

Class AnimatedObject

source code


This is a proxy to any object that would like some of its attributes to be implicitly animated when set.

Instance Methods
 
__init__(self, obj, animated_attributes=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__setattr__(self, attribute, value)
x.__setattr__('name', value) <==> x.name = value
source code
 
__getattr__(self, attribute) source code
 
setup_next_animations(self, duration=None, repeat_behavior=None, repeat_count=None, transformation=None, end_callback=-1) source code
 
update_animation_settings(self, duration=None, repeat_behavior=None, repeat_count=None, transformation=None, end_callback=-1) source code
 
stop_animations(self) source code
boolean
is_animated(self, attribute=None)
Returns True if attribute is currently being animated, False otherwise.
source code
 
stop_animation_for_attribute(self, attribute)
Stop the animation for a given attribute.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __sizeof__, __str__, __subclasshook__

Instance Variables
bool passthrough
whether or not it is acting as a passthrough, that is not animating proxied object's instance variables; False by default
Properties

Inherited from object: __class__

Method Details

__init__(self, obj, animated_attributes=None)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Parameters:
  • animated_attributes - backward compatibility only
  • obj (object) - object to be proxied and implicitly animated
Overrides: object.__init__

__setattr__(self, attribute, value)

source code 

x.__setattr__('name', value) <==> x.name = value

Overrides: object.__setattr__
(inherited documentation)

is_animated(self, attribute=None)

source code 

Returns True if attribute is currently being animated, False otherwise. If no attribute is specified, return True if any of the attributes is currently animated.

Parameters:
  • attribute (string) - attribute to check for
Returns: boolean

stop_animation_for_attribute(self, attribute)

source code 

Stop the animation for a given attribute.

Parameters:
  • attribute (string) - attribute for which animations should be stopped