SHARE
TWEET

Untitled

a guest May 19th, 2019 56 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 = 5 * a
  8.     for i in reversed(range(-1,(5*a),a)):
  9.         canvas.create_oval(x+i, y+i, x-i, y-i, fill=f1)
  10.         f1, f2 = f2, f1
  11.     canvas.create_line(x-r, y, x+r, y)
  12.     canvas.create_line(x, y+r, x, y-r)
  13.  
  14.  
  15. kresli(250,250, 5)
  16. 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