From 83d22cd66127abe517b265f46c1b1b2d318a1b33 Mon Sep 17 00:00:00 2001 From: ATATC Date: Thu, 12 Dec 2024 12:20:25 -0500 Subject: [PATCH] Bug fixed. (#456) --- leads_gui/speedometer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/leads_gui/speedometer.py b/leads_gui/speedometer.py index 2729d478..29e23ba4 100644 --- a/leads_gui/speedometer.py +++ b/leads_gui/speedometer.py @@ -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))