## Posted By

maturanti19 on 05/22/19

# schody pekna vec z rohu text do kruhu stary a novy zapis

/ Published in: Python

Vytvorte text do kruhu a schody a obdlzniky pod seba rovnako daleko

`import tkinterfrom random import * canvas = tkinter.Canvas(height=600, width=800, bg='gainsboro')canvas.pack() #stary zapisx=0for i in range(1,11):    x=x+20    canvas.create_rectangle(x,10,x+15,20) #novy zapisx=0for i in range(1,11):    x=i+20*i    canvas.create_rectangle(x,10,x+15,20) y=10for i in range(10,16):    y=y+20    canvas.create_rectangle(100,y,200,y+10) #text do kruhux=0for i in range(1,7):    t='                   Python'    f='Georgia 18 bold'    x=x+10    canvas.create_text(400,500,text=t,fill='black', angle=x*30, font=f) #schodikyx=10y=10for i in range(0,5):    x=40*i    y=40*i    canvas.create_line(x,y,x+40,y)    canvas.create_line(x+40,y,x+40,y+40) #ta pekna vec z rohux=10y=10for i in range(1,26):    x=x+20    y=y+20    canvas.create_line(x,10,510,y,fill='indigo')    canvas.update()    canvas.after(100) x=10y=10for i in range(1,26):    x=x+20    y=y+20    canvas.create_line(x, 510, 10, y, fill='indigo')    canvas.update()    canvas.after(100) x=500y=10for i in range (1,26):    x=x-20    y=y+20    canvas.create_line(x, 10, 10, y, fill='indigo')    canvas.update()    canvas.after(100)`