Mensagens

A mostrar mensagens de novembro, 2025

Campeões da Liga Europa (por temporada)

from tkinter import * ligue_europa_campeoes = [ { "temporada" : "1971–72" , "campeao" : "Tottenham" , "pais" : "Inglaterra" , "local" : "Final em dois jogos" } , { "temporada" : "1972–73" , "campeao" : "Liverpool" , "pais" : "Inglaterra" , "local" : "Final em dois jogos" } , { "temporada" : "1973–74" , "campeao" : "Feyenoord" , "pais" : "Países Baixos" , "local" : "Final em dois jogos" } , { "temporada" : "1974–75" , "campeao" : "Borussia Mönchengladbach" , "pais" : "Alemanha Ocidental" , "local" : "Final em dois jogos" } , { "temporada" : "1975–76" , "campeao" : "Liverpool" , "pais" : "Inglat...

Bandeiras de Praia no Brasil

from tkinter import * root = Tk() root.geometry( "700x500" ) root.resizable( 0 , 0 ) root.config( bg = "#103030" ) root.title( "Bandeiras de Praia no Brasil" ) titulo = Label( text = "Bandeiras de Praia no Brasil" , font =( "Arial" , 26 , "bold" ) , bg = "#103030" , fg = "#FFFFFF" ) titulo.place( relx = 0.13 , rely = 0.05 ) texto_sub1 = Label( text = "Selecione a Bandeira:" , font =( "Arial" , 18 ) , bg = "#103030" , fg = "#FFFFFF" ) texto_sub1.place( relx = 0.05 , rely = 0.25 ) var = StringVar() dropDownList = [ "Verde" , "Amarela" , "Vermelha" , "Preta" , "Roxa" ] dropdown = OptionMenu(root , var , *dropDownList) var.set(dropDownList[ 0 ]) dropdown.place( relx = 0.05 , rely = 0.32 , relwidth = 0.9 ) dropdown.config( bg = '#107db2' , fg = 'white' , font =( "Arial...

Simulador de radar de velocidade

from tkinter import * import random root = Tk() root.geometry( "700x400" ) root.resizable( 0 , 0 ) root.config( bg = "#103030" ) root.title( "Simulador de radar de velocidade" ) # Título titulo = Label( text = "Simulador de radar de velocidade" , font =( "Arial" , 28 , "bold" ) , bg = "#103030" , fg = "#49e3e3" ) titulo.place( relx = 0.05 , rely = 0.05 ) # Label de resultado resultado_texto = Label( text = "" , font =( "Arial" , 16 , "bold" ) , bg = "#cfe2f3" ) resultado_texto.place( relx = 0.05 , rely = 0.3 , relwidth = 0.9 , relheight = 0.45 ) velocidade_max = 50 # Limite de velocidade def atualizar_velocidade (): valores_carros = random.randint( 30 , 100 ) # velocidade aleatória if valores_carros > velocidade_max: excesso = valores_carros - velocidade_max mensagem = f"Velocidade registrada: { valores_car...

Tempo de cozedora de arroz

from tkinter import * tempos_arroz = { "Arroz branco comum" : "10–12 minutos" , "Arroz carolino" : "12–15 minutos" , "Arroz agulha" : "10–12 minutos" , "Arroz integral" : "35–40 minutos" , "Arroz basmati" : "10–12 minutos" , "Arroz jasmim" : "10–12 minutos" , "Arroz selvagem" : "40–45 minutos" , "Arroz arbóreo (risotto)" : "16–18 minutos" , "Arroz para sushi" : "12–15 minutos" , } root = Tk() root.geometry( "700x300" ) root.resizable( 0 , 0 ) root.config( bg = "#103030" ) root.title( "Tempo de cozedora de arroz" ) titulo = Label( text = "Tempo de cozedora de arroz" , font =( "Arial" , 28 , "bold" ) , bg = "#103030" , fg = "#49e3e3" ) titulo.place( relx = 0.13 , rely = 0.05 ) texto...

Lista dos MVPs da NBA

from tkinter import * from collections import defaultdict nba_mvps = [ { "Ano" : 1956 , "Jogador" : "Bob Pettit" , "Clube" : "St. Louis Hawks" } , { "Ano" : 1957 , "Jogador" : "Bob Cousy" , "Clube" : "Boston Celtics" } , { "Ano" : 1958 , "Jogador" : "Bill Russell" , "Clube" : "Boston Celtics" } , { "Ano" : 1959 , "Jogador" : "Bob Pettit" , "Clube" : "St. Louis Hawks" } , { "Ano" : 1960 , "Jogador" : "Wilt Chamberlain" , "Clube" : "Philadelphia Warriors" } , { "Ano" : 1961 , "Jogador" : "Bill Russell" , "Clube" : "Boston Celtics" } , { "Ano" : 1962 , "Jogador" : "Bill Russell" , "Clube" : "Boston Celtics" } , { ...