from tkinter import *
root = Tk()
root.geometry("700x400")
root.resizable(0, 0)
root.config(bg="#103030")
root.title("Premier League 2025/2026")
titulo = Label(
text="Premier League 2025/2026",
font=("Arial", 28, "bold"),
bg="#103030",
fg="#49e3e3"
)
titulo.place(relx=0.15, rely=0.05)
clubes_ingleses = [
{"clube": "Manchester United Football Club", "cidade": "Manchester", "fundacao": "01/01/1878", "rival": "Manchester City", "estadio": "Old Trafford"},
{"clube": "Liverpool Football Club", "cidade": "Liverpool", "fundacao": "03/06/1892", "rival": "Everton", "estadio": "Anfield"},
{"clube": "Arsenal Football Club", "cidade": "Londres", "fundacao": "01/12/1886", "rival": "Tottenham Hotspur", "estadio": "Emirates Stadium"},
{"clube": "Chelsea Football Club", "cidade": "Londres", "fundacao": "10/03/1905", "rival": "Arsenal", "estadio": "Stamford Bridge"},
{"clube": "Manchester City Football Club", "cidade": "Manchester", "fundacao": "23/11/1880", "rival": "Manchester United", "estadio": "Etihad Stadium"},
{"clube": "Tottenham Hotspur Football Club", "cidade": "Londres", "fundacao": "05/09/1882", "rival": "Arsenal", "estadio": "Tottenham Hotspur Stadium"},
{"clube": "Newcastle United Football Club", "cidade": "Newcastle upon Tyne", "fundacao": "09/12/1892", "rival": "Sunderland", "estadio": "St James' Park"},
{"clube": "Everton Football Club", "cidade": "Liverpool", "fundacao": "01/01/1878", "rival": "Liverpool", "estadio": "Goodison Park"},
{"clube": "Aston Villa Football Club", "cidade": "Birmingham", "fundacao": "21/11/1874", "rival": "Birmingham City", "estadio": "Villa Park"},
{"clube": "West Ham United Football Club", "cidade": "Londres", "fundacao": "29/06/1895", "rival": "Millwall", "estadio": "London Stadium"},
{"clube": "Leeds United Football Club", "cidade": "Leeds", "fundacao": "17/10/1919", "rival": "Manchester United", "estadio": "Elland Road"},
{"clube": "Nottingham Forest Football Club", "cidade": "Nottingham", "fundacao": "01/01/1865", "rival": "Derby County", "estadio": "City Ground"},
{"clube": "Leicester City Football Club", "cidade": "Leicester", "fundacao": "01/01/1884", "rival": "Nottingham Forest", "estadio": "King Power Stadium"},
{"clube": "Southampton Football Club", "cidade": "Southampton", "fundacao": "21/11/1885", "rival": "Portsmouth", "estadio": "St Mary's Stadium"},
{"clube": "Wolverhampton Wanderers Football Club", "cidade": "Wolverhampton", "fundacao": "01/01/1877", "rival": "West Bromwich Albion", "estadio": "Molineux Stadium"},
{"clube": "Fulham Football Club", "cidade": "Londres", "fundacao": "16/08/1879", "rival": "Chelsea", "estadio": "Craven Cottage"},
{"clube": "Brighton & Hove Albion Football Club", "cidade": "Brighton", "fundacao": "24/06/1901", "rival": "Crystal Palace", "estadio": "Amex Stadium"},
{"clube": "Crystal Palace Football Club", "cidade": "Londres", "fundacao": "10/09/1905", "rival": "Brighton & Hove Albion", "estadio": "Selhurst Park"},
{"clube": "Brentford Football Club", "cidade": "Londres", "fundacao": "10/10/1889", "rival": "Fulham", "estadio": "Gtech Community Stadium"},
{"clube": "Burnley Football Club", "cidade": "Burnley", "fundacao": "18/05/1882", "rival": "Blackburn Rovers", "estadio": "Turf Moor"}
]
nomes_clubes = [c["clube"] for c in clubes_ingleses]
var = StringVar()
var.set(nomes_clubes[0]) # valor inicial
dropdown = OptionMenu(root, var, *nomes_clubes)
dropdown.place(relx=0.08, rely=0.25, relwidth=0.9)
dropdown.config(background='#09A3BA', foreground="#FFFFFF",
font=("Arial", 15, "bold"))
dropdown["menu"].config(background='#09A3BA', foreground="#FFFFFF",
font=("Arial", 15, "bold"))
def app():
clube_escolhido = var.get()
for c in clubes_ingleses:
if c["clube"] == clube_escolhido:
info = f"{c['clube']}\n"
info += f"Cidade: {c['cidade']}\n"
info += f"Estádio: {c['estadio']}\n"
info += f"Rival: {c['rival']}\n"
info += f"Fundação: {c['fundacao']}"
resultado_texto.config(text=info)
break
def limpar():
resultado_texto.config(text="")
# Botões
but1 = Button(text="Mostrar", bd=2, bg='#107db2', fg='white',
font=('verdana', 12, 'bold'), command=app)
but1.place(relx=0.1, rely=0.45, relwidth=0.25, relheight=0.1)
but_limpar = Button(text="Limpar", bd=2, bg='#107db2', fg='white',
font=('verdana', 12, 'bold'), command=limpar)
but_limpar.place(relx=0.4, rely=0.45, relwidth=0.25, relheight=0.1)
but_sair = Button(text="Sair", bd=2, bg='#107db2', fg='white',
font=('verdana', 12, 'bold'), command=root.destroy)
but_sair.place(relx=0.7, rely=0.45, relwidth=0.25, relheight=0.1)
resultado_texto = Label(text="",
font=("Arial", 12, "bold"), bg="#cfe2f3", justify=LEFT)
resultado_texto.place(relx=0.05, rely=0.65, relwidth=0.9, relheight=0.3)
root.mainloop()