a guest May 19th, 2019 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- import tkinter
- canvas = tkinter.Canvas(width="500", height="500")
- def kresli(x,y,a):
- f1 = "red"
- f2 = "blue"
- r = 5 * a
- for i in reversed(range(-1,(5*a),a)):
- canvas.create_oval(x+i, y+i, x-i, y-i, fill=f1)
- f1, f2 = f2, f1
- canvas.create_line(x-r, y, x+r, y)
- canvas.create_line(x, y+r, x, y-r)
- kresli(250,250, 5)
RAW Paste Data