event-driven programming

A style where a program waits for events such as clicks or key presses and runs code in response, instead of following one fixed sequence.

In more detail

The course's graphics programs are mostly simple sequences that pause for getMouse; full graphical toolkits such as tkinter are event driven, with an event loop calling your functions when things happen. Web servers, games and phone apps are all built in this style.

Related terms

Taught in

References