Traffic Lights is a little tutorial Widget which shows how to write a class for a Traffic Light object.
The Widget simulates timed traffic lights at a simple East-West, North-South crossing. It makes use of a timer to step a finite state machine.
There are options to set the lengths of the green phases and whether the Widget is to simulate a UK (4-phase) of US (3-phase) system.