[Python] python tkinter if no button pressed run function

Discussão em 'Python' iniciado por Stack, Março 24, 2025.

  1. Stack

    Stack Membro Participativo

    I am currently working on a roulette game in Tkinter. The problem is that I want the game to automatically run after a certain time (e.g. 20 seconds). It will only run now if the player inputs something, such as pressing a button and entering an amount of money. But I want the game to run even if the player didn’t bet anything (no buttons were pressed).

    Pseudocode:

    If no button has been pressed for 20 seconds:
    spin_roulette()

    Continue reading...

Compartilhe esta Página