From a4d86e0518ca0ef875d0c384bfe965f7a322e624 Mon Sep 17 00:00:00 2001 From: konek Date: Tue, 19 Nov 2024 15:17:46 +0100 Subject: [PATCH] Fix Display of abc coordinates Fix indentation of several lines, in order to remove them from the exception --- bCNC/ControlPage.py | 39 ++++++++++++++++++++------------------- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/bCNC/ControlPage.py b/bCNC/ControlPage.py index fd07aaacd..b2ac8bb03 100644 --- a/bCNC/ControlPage.py +++ b/bCNC/ControlPage.py @@ -800,25 +800,26 @@ def updateCoords(self): focus = self.focus_get() except Exception: focus = None - if focus is not self.awork: - self.awork.delete(0, END) - self.awork.insert(0, self.padFloat(CNC.drozeropad, - CNC.vars["wa"])) - if focus is not self.bwork: - self.bwork.delete(0, END) - self.bwork.insert(0, self.padFloat(CNC.drozeropad, - CNC.vars["wb"])) - if focus is not self.cwork: - self.cwork.delete(0, END) - self.cwork.insert(0, self.padFloat(CNC.drozeropad, - CNC.vars["wc"])) - - self.amachine["text"] = self.padFloat(CNC.drozeropad, - CNC.vars["ma"]) - self.bmachine["text"] = self.padFloat(CNC.drozeropad, - CNC.vars["mb"]) - self.cmachine["text"] = self.padFloat(CNC.drozeropad, - CNC.vars["mc"]) + + if focus is not self.awork: + self.awork.delete(0, END) + self.awork.insert(0, self.padFloat(CNC.drozeropad, + CNC.vars["wa"])) + if focus is not self.bwork: + self.bwork.delete(0, END) + self.bwork.insert(0, self.padFloat(CNC.drozeropad, + CNC.vars["wb"])) + if focus is not self.cwork: + self.cwork.delete(0, END) + self.cwork.insert(0, self.padFloat(CNC.drozeropad, + CNC.vars["wc"])) + + self.amachine["text"] = self.padFloat(CNC.drozeropad, + CNC.vars["ma"]) + self.bmachine["text"] = self.padFloat(CNC.drozeropad, + CNC.vars["mb"]) + self.cmachine["text"] = self.padFloat(CNC.drozeropad, + CNC.vars["mc"]) # ----------------------------------------------------------------------