Jogo de cores usando Tkinter
from tkinter import * import random root = Tk() root.title( "Jogo de Cores" ) root.geometry( '600x300' ) root.resizable( False,False ) colors = [ "Red" , "Orange" , "White" , "Black" , "Green" , "Blue" , "Brown" , "Purple" , "Cyan" , "Yellow" , "Pink" , "Magenta" ] timer = 60 pontos = 0 displayed_word_color = '' def startGame (): global displayed_word_color if (timer == 60 ): startCountDown() displayed_word_color = random.choice(colors).lower() display_words.config( text =random.choice(colors) , fg =displayed_word_color) entry_cor.bind( '<Return>' , displayNextWord) def resetGame (): global timer , score , displayed_word_color timer = 60 pontos = 0 displayed_word_color = '' game_score.config( text = "Pontos :...