Tested against Python 3.12.5 on pyenv, built with tcl-tk for tkinter support, which turtle requires.
# Método para escolher a dificuldade do jogo def escolher_dificuldade(self): tela = turtle.Screen() tela.title("Escolha a Dificuldade") turtle.hideturtle() turtle ...