Page 304, Introduction to Programming Using Python - Y.Liang Pearson 2013
IntroductiontoProgrammingUsingPython-Y.LiangPearson2013WW.pdf
Tkinter
(Racing car) Write a program that simulates car racing, as shown in Figure
9.29b–d. The car moves from left to right. When it reaches the right end, it restarts
from the left and continues the same process. Let the user increase and decrease
the car’s speed by pressing the Up and Down arrow keys.
(a) The programs display a fan and (b–c) a moving car. (d) You can redraw a car with a new base point.