Commit e23af181 authored by Guillaume Seguin's avatar Guillaume Seguin

Update homeButtonClicked to reflect changes to XYButtons

parent 690e37bd
...@@ -1211,16 +1211,18 @@ Printrun. If not, see <http://www.gnu.org/licenses/>.""" ...@@ -1211,16 +1211,18 @@ Printrun. If not, see <http://www.gnu.org/licenses/>."""
else: else:
e.Skip() e.Skip()
def homeButtonClicked(self, corner): def homeButtonClicked(self, axis):
# When user clicks on the XY control, the Z control no longer gets spacebar/repeat signals # When user clicks on the XY control, the Z control no longer gets spacebar/repeat signals
self.zb.clearRepeat() self.zb.clearRepeat()
if corner == 0: # upper-left if axis == "x":
self.onecmd('home X') self.onecmd('home X')
elif corner == 1: # upper-right elif axis == "y": # upper-right
self.onecmd('home Y') self.onecmd('home Y')
elif corner == 2: # lower-right elif axis == "z":
self.onecmd('home Z') self.onecmd('home Z')
elif corner == 3: # lower-left elif axis == "xy":
self.onecmd('home XY')
elif axis == "all":
self.onecmd('home') self.onecmd('home')
else: else:
return return
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment