Esempio n. 1
0
 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))
Esempio n. 2
0
 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))