Skip to content

Commit d84d56f

Browse files
committed
style(dlazdice.py): reformat with black
1 parent cffe81d commit d84d56f

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

‎dlazdice.py‎

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
# nakreslí vesnici pomocí knihovny turtle
2-
2+
33
from turtle import exitonclick, bgcolor, screensize, title, colormode
44
import turtle
55
from random import randint, randrange
66
import math
77

8+
89
def dlazdice(t, strana, barva):
910

1011
t.pencolor("black")
@@ -20,7 +21,8 @@ def dlazdice(t, strana, barva):
2021
t.backward(0)
2122
t.pendown()
2223

23-
def main():
24+
25+
def main():
2426

2527
# barva pozadí okna
2628
bgcolor("black")
@@ -36,7 +38,6 @@ def main():
3638

3739
t.shape("turtle")
3840

39-
4041
# nejrychlejší želva = velmi rychlé kreslení
4142
t.speed(0)
4243
# velikost pera = slabý obrys
@@ -55,7 +56,7 @@ def main():
5556
dlazdice(t, strana, barva)
5657
t.penup()
5758
t.right(60)
58-
t.forward(2*strana)
59+
t.forward(2 * strana)
5960
t.pendown()
6061
t.right(60)
6162
t.left(60)
@@ -64,5 +65,6 @@ def main():
6465
# zavření okna
6566
exitonclick()
6667

68+
6769
if __name__ == "__main__":
68-
main()
70+
main()

0 commit comments

Comments
 (0)