Skip to content

Commit

Permalink
pep8 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
akshayaurora committed Jul 9, 2015
1 parent bccd9e0 commit 429beca
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions examples/canvas/rounded_rectangle.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,27 @@ def prepare(self):
# by using small amount on small corners, while using
# bigger amount on bigger corners.
RoundedRectangle(
pos=(50, 25), radius=[40], segments=[1, 1, 10, 10], size=(125, 100))

# if radius dimension is 0, then the corner will be sharp (90 degrees)
# it is also possible to mix tuple values with numeric
pos=(50, 25),
radius=[40],
segments=[1, 1, 10, 10],
size=(125, 100))

# If radius dimension is 0, then the corner will be sharp
# (90 degrees). It is also possible to mix tuple values
# with numeric
Color(*ORANGE)
RoundedRectangle(pos=(200, 25), radius=[(40, 20), 45.5, 45.5, 0], segments=[2, 3, 3, 1], size=(125, 100))
RoundedRectangle(
pos=(200, 25),
radius=[(40, 20),
45.5, 45.5, 0],
segments=[2, 3, 3, 1], size=(125, 100))

Color(*RED)
RoundedRectangle(pos=(350, 25), radius=[(40, 40), (40, 40), (20, 20), (20, 20)], segments=[2, 3, 3, 2], size=(150, 100))
RoundedRectangle(
pos=(350, 25),
radius=[(40, 40), (40, 40), (20, 20), (20, 20)],
segments=[2, 3, 3, 2],
size=(150, 100))


class DrawRoundedRectanglesApp(App):
Expand Down

0 comments on commit 429beca

Please sign in to comment.