Skip to content
Snippets Groups Projects
Commit 8362a5dd authored by dos's avatar dos Committed by pippin
Browse files

py,st3m: view: Add ViewTransitionNone

A simple transition with no animation.
parent a4864279
No related branches found
No related tags found
No related merge requests found
...@@ -100,6 +100,17 @@ class ViewTransition(ABCBase): ...@@ -100,6 +100,17 @@ class ViewTransition(ABCBase):
pass pass
class ViewTransitionNone(ViewTransition):
"""
Immediate transition with no animation.
"""
def draw(
self, ctx: Context, transition: float, incoming: Responder, outgoing: Responder
) -> None:
incoming.draw(ctx)
class ViewTransitionBlend(ViewTransition): class ViewTransitionBlend(ViewTransition):
""" """
Transition from one view to another by opacity blending. Transition from one view to another by opacity blending.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment