#spin loop--white ball spins in orbit. python 11 import random import time import math from Tkinter import * frmMain = Tk() myCanvas = Canvas(width=400, height=400, background="orange") degrees = 270 for i in range(200): xpt = 200 + int(100 * math.cos(degrees * math.pi/180)) ypt = 200 + int(100 * math.sin(degrees * math.pi/180)) myCanvas.create_oval(xpt,ypt,xpt+25,ypt+25,fill="white",outline="white") myCanvas.pack() myCanvas.update() time.sleep(0.1) myCanvas.create_oval(xpt,ypt,xpt+25,ypt+25,fill="orange",outline="orange") degrees = degrees + 10 myCanvas.pack() frmMain.mainloop()