Verified Commit b5e47216 authored by Jakob Moser's avatar Jakob Moser
Browse files

Add scene (thing to be shown on UI)

parent 84cd0468
Loading
Loading
Loading
Loading
+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
        """
        ...
+0 −0

Empty file added.