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
- getMouse() — The GraphWin method that waits until the user clicks in the window and returns the click position as a Point.
- tkinter — The standard library module that lets Python programs create windows and graphics using Tk.
Taught in
- Sample Graphics Programs — Hands-on Python: Complete Video Course & Book
- Chapter Two In One Sitting — Hands-on Python: Complete Video Course & Book
- Any Type As A Condition — Hands-on Python: Complete Video Course & Book