Exemplo n.º 1
0
class AddPlayersController:
    def __init__(self):
        self.view = PlayerOptionView()

    def __call__(self, store):
        self.view.diplay_players_list("players")
        return TournamentController()
Exemplo n.º 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()
Exemplo n.º 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()