Feb-10-2021, 03:00 AM
If you have a fixed duration you could do something like read the time on the first click and set an event to call a function after some time has passed. Between the two you just count clicks. In tkinter I would use .after(). In Qt I would use QTimer. I have no experience with PyGame, but they must have a way of specifying when you want to do something.