我正在使用zelle圖形制作一個簡單的python輪盤賭程序。我有下面的代碼,我試圖在這兩個圈子(賽道)之間移動球。有沒有辦法做到這一點。我的想法是解壓縮(ball.undraw()),並在.10秒的時間間隔(time.sleep(.10))中再次繪製它,但我不知道如何在數學上做到這一點,所以它通過軌道。Zelle Graphics動畫
從圖形導入* 高清的main(): 贏= GraphWin()
Circle1 = Circle(Point(100,100),95) #Makes the first Circle
Circle1.draw(win)
Circle2 = Circle(Point(100,100),80) #Makes the second Circle
Circle2.draw(win)
Ball = Circle(Point(100,12),5) #Makes the ball Circle
Ball.draw(win)
win.getMouse()
win.close()
的main()
你可以在問題主體中修正你的格式,並立即圍繞你的代碼塊嗎? – BlackVegetable 2014-10-30 18:44:12