def move(self, widget, dir): dist = str(self.distance) if dir == "+" else "-" + str(self.distance) logging.info("# Moving %s", KlippyGcodes.testz_move(dist)) self._screen._ws.klippy.gcode_script(KlippyGcodes.testz_move(dist))
def move(self, widget, direction): dist = f"{direction}{self.distance}" logging.info(f"# Moving {KlippyGcodes.testz_move(dist)}") self._screen._ws.klippy.gcode_script(KlippyGcodes.testz_move(dist))