From ca9960871dfe5b7c9dfe775206185abe3c2ebfc8 Mon Sep 17 00:00:00 2001 From: vacapetr <73720287+vacapetr@users.noreply.github.com> Date: Sat, 14 Nov 2020 23:16:03 +0100 Subject: [PATCH] Vacapetr patch 1 (#14) * adjust the display for a lower resolution/800x480/ string shortening / long string caused the display to shift at a lower resolution. (panel job_status ) --- KlippyGtk.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/KlippyGtk.py b/KlippyGtk.py index b5e5366f..6aac3906 100644 --- a/KlippyGtk.py +++ b/KlippyGtk.py @@ -206,4 +206,4 @@ class KlippyGtk: def formatTemperatureString(temp, target): if (target > temp-2 and target < temp+2) or round(target,0) == 0: return str(round(temp,2)) + "°C" #°C →" - return str(round(temp,2)) + "°C → " + str(round(target,2)) + "°C" + return str(round(temp)) + " → " + str(round(target)) + "°C"