SHARE
TWEET

Untitled

a guest May 19th, 2019 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import tkinter
  2. canvas = tkinter.Canvas(width="500", height="500")
  3. canvas.pack()
  4. def kresli(x,y,a):
  5.     f1 = "red"
  6.     f2 = "blue"
  7.     r = 10 * a
  8.     for i in reversed(range(1,r,10)):
  9.         canvas.create_oval(x+i, y+i, x-i, y-i, fill=f1)
  10.         f1, f2 = f2, f1
  11.  
  12.  
  13. kresli(50,50, 5)
  14. tkinter.mainloop()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top