Skip to content

Commit

Permalink
Bug fixed. (#456)
Browse files Browse the repository at this point in the history
  • Loading branch information
ATATC committed Dec 12, 2024
1 parent 9dcca5f commit 83d22cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions leads_gui/speedometer.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ def dynamic_renderer(self, canvas: CanvasBased) -> None:
f"#{f"{int(0x4d + 0xb2 * p):02x}" * 3}"))
canvas.collect("d0", canvas.create_arc(x - r, y - r, x + r, y + r, start=-30, extent=240, width=4,
style=_ARC, outline=color))
canvas.collect("d1", canvas.create_line(*(x, y) if self._style == 2 else (x - _cos(rad) * (r - 8),
canvas.collect("d1", canvas.create_line((x, y) if self._style == 2 else (x - _cos(rad) * (r - 8),
y - _sin(rad) * (r - 8)),
x - _cos(rad) * (r + 8), y - _sin(rad) * (r + 8), width=4,
(x - _cos(rad) * (r + 8), y - _sin(rad) * (r + 8)), width=4,
fill=color))
canvas.collect("d2", canvas.create_text(x, y * .95 if self._style == 1 else y + (r - font[1]) * .5,
text=str(int(v)), fill=self._text_color, font=font))
Expand Down

0 comments on commit 83d22cd

Please sign in to comment.