Loading poolpay/ui/scenes/Scene.py 0 → 100644 +19 −0 Original line number Diff line number Diff line from abc import ABC, abstractmethod from dataclasses import dataclass from poolpay.director.Director import Director @dataclass(frozen=True) class Scene(ABC): director: Director @abstractmethod def present(self) -> None: """ Present the scene, i.e., do everything necessary to: 1. Clear out whatever is currently on the screen (if needed) 2. Show the UI components of this scene on the screen """ ... poolpay/ui/scenes/__init__.py 0 → 100644 +0 −0 Empty file added. Loading
poolpay/ui/scenes/Scene.py 0 → 100644 +19 −0 Original line number Diff line number Diff line from abc import ABC, abstractmethod from dataclasses import dataclass from poolpay.director.Director import Director @dataclass(frozen=True) class Scene(ABC): director: Director @abstractmethod def present(self) -> None: """ Present the scene, i.e., do everything necessary to: 1. Clear out whatever is currently on the screen (if needed) 2. Show the UI components of this scene on the screen """ ...