Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import tkinter, time
- def nakresli_lopticku():
- x = 10
- y = 10
- for i in range(1000):
- canvas.delete(tkinter.ALL)
- canvas.create_oval(x, y, x+60, y+60,width=5,fill="green")
- canvas.update() # aby sa kruh hneď ukázal
- #canvas.
- time.sleep(0.1)
- x += 60
- x = x % 1000
- canvas = tkinter.Canvas(height = 300, width = 1000)
- canvas.pack()
- nakresli_lopticku()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement