Skip to content
Snippets Groups Projects
Commit 522c61b3 authored by dos's avatar dos Committed by ave
Browse files

py,st3m: View: Add on_{enter,exit}_done methods

parent 99404904
No related branches found
No related tags found
No related merge requests found
......@@ -27,6 +27,18 @@ class View(Responder):
"""
pass
def on_enter_done(self) -> None:
"""
Called after a transition into the view has finished.
"""
pass
def on_exit_done(self) -> None:
"""
Called after a transition out of the view has finished.
"""
pass
def show_icons(self) -> bool:
"""
View should return True if it accepts having system icons drawn on top
......@@ -188,6 +200,10 @@ class ViewManager(Responder):
self._transition = 0
self._transitioning = False
if self._incoming is not None:
self._incoming.on_enter_done()
if self._outgoing is not None:
self._outgoing.on_exit_done()
self._outgoing = None
if self._outgoing is not None:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment