def show_actors_elo(self): """ Fonction qui affiche la liste des acteurs par elo """ list_actors_elo = r.report_actors_elo(r.actors_list(actors_db)) about_window = tkinter.Toplevel(app) about_window.title("Liste des acteurs") lb = tkinter.Label(about_window, text=list_actors_elo) lb.pack()
def show_actors_alpha(self): """ Fonction qui affiche la liste des acteurs par ordre alphabétique """ list_actors_alpha = r.report_actors_alpha(r.actors_list(actors_db)) about_window = tkinter.Toplevel(app) about_window.title("Liste des acteurs") lb = tkinter.Label(about_window, text=list_actors_alpha) lb.pack()
def show_rounds(self): """ Fonction qui affiche les rounds """ list_tournament_rounds = r.report_rounds(db, self.tournament_name) list_tournament_matchs = r.report_matchs(db, self.tournament_name) about_window = tkinter.Toplevel(app) about_window.title("Infos du tournoi") lb = tkinter.Label( about_window, text=f"{list_tournament_rounds}\n\n\n{list_tournament_matchs}") lb.pack()
def show_actors_alpha(): list_actors_alpha = r.report_actors_alpha(r.actors_list(actors_db)) about_window = tkinter.Toplevel(app) about_window.title("Liste des acteurs") lb = tkinter.Label(about_window, text=list_actors_alpha, fg="white", font="Monserrat") lb.config(background="black") lb.pack()
def show_players(self): """ Fonction qui affiche les players """ list_players_alpha = r.report_players_alpha( r.report_players(db, self.tournament_name), self.tournament_name) list_players_elo = r.report_players_elo( r.report_players(db, self.tournament_name), self.tournament_name) about_window = tkinter.Toplevel(app) about_window.title("Infos du tournoi") lb = tkinter.Label( about_window, text=f"{list_players_alpha}\n\n\n{list_players_elo}", ) lb.pack()
def show_rounds(): name = vt.get_tournament_name() list_tournament_rounds = r.report_rounds(db, name) list_tournament_matchs = r.report_matchs(db, name) about_window = tkinter.Toplevel(app) about_window.title("Rounds and Matchs") lb = tkinter.Label( about_window, text=f"{list_tournament_rounds}\n\n\n{list_tournament_matchs}", fg="white", font="Monserrat", ) lb.config(background="black") lb.pack()
def show_players(): name = vt.get_tournament_name() list_players_alpha = r.report_players_alpha(r.report_players(db, name), name) list_players_elo = r.report_players_elo(r.report_players(db, name), name) about_window = tkinter.Toplevel(app) about_window.title("Players") lb = tkinter.Label( about_window, text=f"{list_players_alpha}\n\n\n{list_players_elo}", fg="white", font="Monserrat", ) lb.config(background="black") lb.pack()
def show_tournaments_list(): list_tournaments = r.report_tournaments(db) about_window = tkinter.Toplevel(app) about_window.title("Liste des tournois") lb = tkinter.Label(about_window, text=(f"{list_tournaments}"), fg="white", font="Monserrat") lb.config(background="black") lb.pack()
def show_tournaments_list(self): """ Fonction qui affiche la liste des tournois """ list_tournaments = r.report_tournaments(db) about_window = tkinter.Toplevel(app) about_window.title("Liste des tournois") about_window.config(background="black") about_window.config(fg="white") lb = tkinter.Label(about_window, text=(f"{list_tournaments}")) lb.config(background="white") lb.config(fg="red") lb.pack()