[Python] How can I log key presses using turtle?

Discussão em 'Python' iniciado por Stack, Setembro 14, 2025.

  1. Stack

    Stack Membro Participativo

    I'm trying to make a simple turtle script that asks the user for their username, and then stores that. I don't have any code, but if I used onkeypress, it seems I would have to make a function for appending every single possible character to the username variable, and that doesn't seem very pythonic. Is there a better way to do this?

    Continue reading...

Compartilhe esta Página