Loading poolpay/ui/Play.py 0 → 100644 +24 −0 Original line number Diff line number Diff line from dataclasses import dataclass from poolpay.ui.scenes.Balance import Balance from poolpay.ui.scenes.Idle import Idle from poolpay.ui.scenes.PaymentSuccess import PaymentSuccess from poolpay.ui.scenes.Reversal import Reversal from poolpay.ui.scenes.WaitForCard import WaitForCard @dataclass(frozen=True) class Play: """ A play is a collection of scences. You can create a play by specifying your particular interpretation (i.e., a concrete subclasses) of each scene. You then generally pass the play on to the director, who instantiates the scenes and presents them. """ Idle: type[Idle] PaymentSuccess: type[PaymentSuccess] WaitForCard: type[WaitForCard] Balance: type[Balance] Reversal: type[Reversal] Loading
poolpay/ui/Play.py 0 → 100644 +24 −0 Original line number Diff line number Diff line from dataclasses import dataclass from poolpay.ui.scenes.Balance import Balance from poolpay.ui.scenes.Idle import Idle from poolpay.ui.scenes.PaymentSuccess import PaymentSuccess from poolpay.ui.scenes.Reversal import Reversal from poolpay.ui.scenes.WaitForCard import WaitForCard @dataclass(frozen=True) class Play: """ A play is a collection of scences. You can create a play by specifying your particular interpretation (i.e., a concrete subclasses) of each scene. You then generally pass the play on to the director, who instantiates the scenes and presents them. """ Idle: type[Idle] PaymentSuccess: type[PaymentSuccess] WaitForCard: type[WaitForCard] Balance: type[Balance] Reversal: type[Reversal]