Skip to content

Commit

Permalink
Fixing the clock app giving a lot of "float coordinate" warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
CRImier committed Mar 10, 2018
1 parent 3cf1be2 commit 41569a6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions apps/clock/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,10 @@ def draw_needle(self, c, progress, radius, x, y, width):
hour_angle = math.pi * 2 * progress + math.pi
c.line(
(
x,
y,
x + radius * math.sin(hour_angle),
y + radius * math.cos(hour_angle)
int(x),
int(y),
int(x + radius * math.sin(hour_angle)),
int(y + radius * math.cos(hour_angle))
),
width=width,
fill=True
Expand Down

0 comments on commit 41569a6

Please sign in to comment.