forked from Textualize/textual
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deanimate! (aka, provide a method of stopping application and widget …
…animations) (Textualize#3000) * Remove duplicated Added section in the CHANGELOG * Add the ability to stop a running animation Adds stop_animation to the core animator class, and then exposes it via the same named methods on App and Widget. Note that a request to stop an animation that isn't running is treated as a no-op. * Fix tests so they actually work and test things This is what happens when you save time using -k to run one test, then add more but keep just hitting cursor up to rerun the tests. O_o * Add the ability to stop an animation and jump to the final value This doesn't address the issue of stopping scheduled animations, that's to come next, first I just wanted to get the basic approach in place and then build out from there. * Add full stopping support to the ScalarAnimation * Tidy up various bits of documentation in Animator While I'm in here and moving things around: being various bits of documentation more in line with how we document these days, and also add some missing documentation. * Allow for the full stopping (with end-seeking) of scheduled animations * Don't spin up a scheduled animation to then not use it * Be super-careful about getting keys when stopping * Pop rather than acquire and delete * Don't implement anything in Animation.stop See Textualize#3000 (comment)
- Loading branch information
Showing
6 changed files
with
229 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters