tween_then_call¶
- transytion.tween_then_call(tween: Tween, manager: TweenManager = <transytion.TweenManager object>)¶
Intended to be used as a decorator. Given a function f, f(args) now executes the tween then calls the function. Similar to tweenify, but intended to be used by being added to a particular tween manager, and, by default, the default manager. This is largely a convenience decorator for tweenify.
NOTE: f(args) followed by f(args) will not block the second call. Two tweens will be added and both will do a double execution of f. NOTE: Because of Python limitations, cannot return value.