Beispiel #1
0
class AddPlayersController:
    def __init__(self):
        self.view = PlayerOptionView()

    def __call__(self, store):
        self.view.diplay_players_list("players")
        return TournamentController()
Beispiel #2
0
class PlayerListController:
    def __init__(self):
        self.view = PlayerOptionView()
        self.data = PlayerData()

    def __call__(self, store):

        self.view.diplay_players_list(store["players"])

        return ReportController()
Beispiel #3
0
class DeletePlayer:
    def __init__(self):
        self.view = PlayerOptionView()
        self.delete = PlayerData()

    def __call__(self, store):
        self.view.diplay_players_list("players")
        self.delete.delete_player()

        return PlayerController()