As it will turn out, there is a remarkable difference between interactive prototypes and interactive pygame programs. The latter have a more powerful mechanism called the event handler queue, that continuously monitors incoming events, without explicitly waiting for input, as the prototype does. In the prototype, the program does nothing while waiting for input, it freezes. A Pygame program, events are captured behind the scenes and put into a queue on their own.
Perhaps, start with:
As it will turn out, there is a remarkable difference between interactive prototypes and interactive pygame programs. The latter have a more powerful mechanism called the event handler queue, that continuously monitors incoming events, without explicitly waiting for input, as the prototype does. In the prototype, the program does nothing while waiting for input, it freezes. A Pygame program, events are captured behind the scenes and put into a queue on their own.