Mundo em Python

NFL Teams 2025/2026

nfl_teams = [
{"nome": "Buffalo Bills", "cidade": "Buffalo", "estado": "NY", "ano_fundacao": 1960,
"numero_titulos_superbowl": 0, "anos_titulos_superbowl": ["Não tem nenhum título"],
"nome_estadio": "Highmark Stadium", "numero_participacoes_superbowl": 4},

{"nome": "Miami Dolphins", "cidade": "Miami", "estado": "FL", "ano_fundacao": 1965,
"numero_titulos_superbowl": 2, "anos_titulos_superbowl": [1972, 1973],
"nome_estadio": "Hard Rock Stadium", "numero_participacoes_superbowl": 5},

{"nome": "New England Patriots", "cidade": "Foxborough", "estado": "MA", "ano_fundacao": 1959,
"numero_titulos_superbowl": 6, "anos_titulos_superbowl": [2001, 2003, 2004, 2014, 2016, 2018],
"nome_estadio": "Gillette Stadium", "numero_participacoes_superbowl": 11},

{"nome": "New York Jets", "cidade": "East Rutherford", "estado": "NJ", "ano_fundacao": 1959,
"numero_titulos_superbowl": 1, "anos_titulos_superbowl": [1968],
"nome_estadio": "MetLife Stadium", "numero_participacoes_superbowl": 1},

{"nome": "Baltimore Ravens", "cidade": "Baltimore", "estado": "MD", "ano_fundacao": 1996,
"numero_titulos_superbowl": 2, "anos_titulos_superbowl": [2000, 2012],
"nome_estadio": "M&T Bank Stadium", "numero_participacoes_superbowl": 2},

{"nome": "Cincinnati Bengals", "cidade": "Cincinnati", "estado": "OH", "ano_fundacao": 1968,
"numero_titulos_superbowl": 0, "anos_titulos_superbowl": ["Não tem nenhum título"],
"nome_estadio": "Paycor Stadium", "numero_participacoes_superbowl": 3},

{"nome": "Cleveland Browns", "cidade": "Cleveland", "estado": "OH", "ano_fundacao": 1946,
"numero_titulos_superbowl": 0, "anos_titulos_superbowl": ["Não tem nenhum título"],
"nome_estadio": "FirstEnergy Stadium", "numero_participacoes_superbowl": 0},

{"nome": "Pittsburgh Steelers", "cidade": "Pittsburgh", "estado": "PA", "ano_fundacao": 1933,
"numero_titulos_superbowl": 6, "anos_titulos_superbowl": [1974, 1975, 1978, 1979, 2005, 2008],
"nome_estadio": "Acrisure Stadium", "numero_participacoes_superbowl": 8},

{"nome": "Houston Texans", "cidade": "Houston", "estado": "TX", "ano_fundacao": 2002,
"numero_titulos_superbowl": 0, "anos_titulos_superbowl": ["Não tem nenhum título"],
"nome_estadio": "NRG Stadium", "numero_participacoes_superbowl": 0},

{"nome": "Indianapolis Colts", "cidade": "Indianapolis", "estado": "IN", "ano_fundacao": 1953,
"numero_titulos_superbowl": 2, "anos_titulos_superbowl": [1970, 2006],
"nome_estadio": "Lucas Oil Stadium", "numero_participacoes_superbowl": 4},

{"nome": "Jacksonville Jaguars", "cidade": "Jacksonville", "estado": "FL", "ano_fundacao": 1995,
"numero_titulos_superbowl": 0, "anos_titulos_superbowl": ["Não tem nenhum título"],
"nome_estadio": "TIAA Bank Field", "numero_participacoes_superbowl": 0},

{"nome": "Tennessee Titans", "cidade": "Nashville", "estado": "TN", "ano_fundacao": 1960,
"numero_titulos_superbowl": 0, "anos_titulos_superbowl": ["Não tem nenhum título"],
"nome_estadio": "Nissan Stadium", "numero_participacoes_superbowl": 1},

{"nome": "Denver Broncos", "cidade": "Denver", "estado": "CO", "ano_fundacao": 1960,
"numero_titulos_superbowl": 3, "anos_titulos_superbowl": [1997, 1998, 2015],
"nome_estadio": "Empower Field at Mile High", "numero_participacoes_superbowl": 8},

{"nome": "Kansas City Chiefs", "cidade": "Kansas City", "estado": "MO", "ano_fundacao": 1960,
"numero_titulos_superbowl": 3, "anos_titulos_superbowl": [1969, 2019, 2022],
"nome_estadio": "Arrowhead Stadium", "numero_participacoes_superbowl": 4},

{"nome": "Las Vegas Raiders", "cidade": "Las Vegas", "estado": "NV", "ano_fundacao": 1960,
"numero_titulos_superbowl": 3, "anos_titulos_superbowl": [1976, 1980, 1983],
"nome_estadio": "Allegiant Stadium", "numero_participacoes_superbowl": 5},

{"nome": "Los Angeles Chargers", "cidade": "Los Angeles", "estado": "CA", "ano_fundacao": 1960,
"numero_titulos_superbowl": 0, "anos_titulos_superbowl": ["Não tem nenhum título"],
"nome_estadio": "SoFi Stadium", "numero_participacoes_superbowl": 1},

{"nome": "Dallas Cowboys", "cidade": "Arlington", "estado": "TX", "ano_fundacao": 1960,
"numero_titulos_superbowl": 5, "anos_titulos_superbowl": [1971, 1977, 1992, 1993, 1995],
"nome_estadio": "AT&T Stadium", "numero_participacoes_superbowl": 8},

{"nome": "New York Giants", "cidade": "East Rutherford", "estado": "NJ", "ano_fundacao": 1925,
"numero_titulos_superbowl": 4, "anos_titulos_superbowl": [1986, 1990, 2007, 2011],
"nome_estadio": "MetLife Stadium", "numero_participacoes_superbowl": 5},

{"nome": "Philadelphia Eagles", "cidade": "Philadelphia", "estado": "PA", "ano_fundacao": 1933,
"numero_titulos_superbowl": 1, "anos_titulos_superbowl": [2017],
"nome_estadio": "Lincoln Financial Field", "numero_participacoes_superbowl": 3},

{"nome": "Washington Commanders", "cidade": "Landover", "estado": "MD", "ano_fundacao": 1932,
"numero_titulos_superbowl": 3, "anos_titulos_superbowl": [1982, 1987, 1991],
"nome_estadio": "FedExField", "numero_participacoes_superbowl": 5},

{"nome": "Chicago Bears", "cidade": "Chicago", "estado": "IL", "ano_fundacao": 1919,
"numero_titulos_superbowl": 1, "anos_titulos_superbowl": [1985],
"nome_estadio": "Soldier Field", "numero_participacoes_superbowl": 2},

{"nome": "Detroit Lions", "cidade": "Detroit", "estado": "MI", "ano_fundacao": 1930,
"numero_titulos_superbowl": 0, "anos_titulos_superbowl": ["Não tem nenhum título"],
"nome_estadio": "Ford Field", "numero_participacoes_superbowl": 0},

{"nome": "Green Bay Packers", "cidade": "Green Bay", "estado": "WI", "ano_fundacao": 1919,
"numero_titulos_superbowl": 4, "anos_titulos_superbowl": [1966, 1967, 1996, 2010],
"nome_estadio": "Lambeau Field", "numero_participacoes_superbowl": 5},

{"nome": "Minnesota Vikings", "cidade": "Minneapolis", "estado": "MN", "ano_fundacao": 1960,
"numero_titulos_superbowl": 0, "anos_titulos_superbowl": ["Não tem nenhum título"],
"nome_estadio": "U.S. Bank Stadium", "numero_participacoes_superbowl": 4},

{"nome": "Atlanta Falcons", "cidade": "Atlanta", "estado": "GA", "ano_fundacao": 1965,
"numero_titulos_superbowl": 0, "anos_titulos_superbowl": ["Não tem nenhum título"],
"nome_estadio": "Mercedes-Benz Stadium", "numero_participacoes_superbowl": 2},

{"nome": "Carolina Panthers", "cidade": "Charlotte", "estado": "NC", "ano_fundacao": 1993,
"numero_titulos_superbowl": 0, "anos_titulos_superbowl": ["Não tem nenhum título"],
"nome_estadio": "Bank of America Stadium", "numero_participacoes_superbowl": 2},

{"nome": "New Orleans Saints", "cidade": "New Orleans", "estado": "LA", "ano_fundacao": 1967,
"numero_titulos_superbowl": 1, "anos_titulos_superbowl": [2009],
"nome_estadio": "Caesars Superdome", "numero_participacoes_superbowl": 1},

{"nome": "Tampa Bay Buccaneers", "cidade": "Tampa", "estado": "FL", "ano_fundacao": 1976,
"numero_titulos_superbowl": 2, "anos_titulos_superbowl": [2002, 2020],
"nome_estadio": "Raymond James Stadium", "numero_participacoes_superbowl": 2},

{"nome": "Arizona Cardinals", "cidade": "Glendale", "estado": "AZ", "ano_fundacao": 1898,
"numero_titulos_superbowl": 0, "anos_titulos_superbowl": ["Não tem nenhum título"],
"nome_estadio": "State Farm Stadium", "numero_participacoes_superbowl": 1},

{"nome": "Los Angeles Rams", "cidade": "Los Angeles", "estado": "CA", "ano_fundacao": 1936,
"numero_titulos_superbowl": 2, "anos_titulos_superbowl": [1999, 2021],
"nome_estadio": "SoFi Stadium", "numero_participacoes_superbowl": 4},

{"nome": "San Francisco 49ers", "cidade": "Santa Clara", "estado": "CA", "ano_fundacao": 1946,
"numero_titulos_superbowl": 5, "anos_titulos_superbowl": [1981, 1984, 1988, 1989, 1994],
"nome_estadio": "Levi's Stadium", "numero_participacoes_superbowl": 7},

{"nome": "Seattle Seahawks", "cidade": "Seattle", "estado": "WA", "ano_fundacao": 1976,
"numero_titulos_superbowl": 1, "anos_titulos_superbowl": [2013],
"nome_estadio": "Lumen Field", "numero_participacoes_superbowl": 3}
] from tkinter import * root = Tk()
root.geometry("700x500")
root.resizable(0, 0)
root.config(bg="#103030")
root.title("NFL Teams 2025/2026") titulo = Label(
text="NFL Teams 2025/2026",
font=("Arial", 28, "bold"),
bg="#103030",
fg="#49e3e3"
)
titulo.place(relx=0.1, rely=0.05) texto_sub1 = Label(
text="Escolha um clube:",
font=("Arial", 18, "bold"),
bg="#103030",
fg="#49e3e3"
)
texto_sub1.place(relx=0.05, rely=0.25) # Dropdown
var = StringVar()
clubes_ordenados = sorted([clube["nome"] for clube in nfl_teams])
var.set(clubes_ordenados[0]) dropdown = OptionMenu(root, var, *clubes_ordenados)
dropdown.place(relx=0.4, rely=0.25, relwidth=0.57)
dropdown.config(background='#09A3BA', foreground="#FFFFFF", font=("Arial", 15, "bold"))
dropdown["menu"].config(background='#09A3BA', foreground="#FFFFFF", font=("Arial", 13)) # Textarea com scrollbar
frame_text = Frame(root, bg="#103030")
frame_text.place(relx=0.05, rely=0.35, relwidth=0.9, relheight=0.6) scrollbar = Scrollbar(frame_text)
scrollbar.pack(side=RIGHT, fill=Y) text_area = Text(
frame_text,
bg="#092A2A",
fg="#FFFFFF",
font=("Arial", 14),
wrap=WORD,
yscrollcommand=scrollbar.set
)
text_area.pack(expand=True, fill=BOTH)
scrollbar.config(command=text_area.yview)
# Função para mostrar os dados do clube
def mostrar_clube(*args):
clube_nome = var.get()
# Encontrar o dicionário do clube
dados = next((c for c in nfl_teams if c["nome"] == clube_nome), None) if dados:
text_area.delete("1.0", END)
text_area.insert(END, f"{dados['nome']}\n\n")
text_area.insert(END, f"Cidade: {dados['cidade']}\n")
text_area.insert(END, f"Estado: {dados['estado']}\n")
text_area.insert(END, f"Ano de Fundação: {dados['ano_fundacao']}\n")
text_area.insert(END, f"Participações no Super Bowl: {dados['numero_participacoes_superbowl']}\n")
text_area.insert(END, f"Títulos do Super Bowl: {dados['numero_titulos_superbowl']}\n")
text_area.insert(END, f"Nome do Estádio: {dados['nome_estadio']}\n")
text_area.insert(END, f"Anos dos títulos: {', '.join(map(str, dados['anos_titulos_superbowl']))}\n")
var.trace("w", mostrar_clube)
mostrar_clube() root.mainloop()
0