反转Z轴+与-位置
This commit is contained in:
parent
56e0e2721e
commit
6d64f9440e
@ -82,11 +82,11 @@ class Panel(ScreenPanel):
|
|||||||
grid.attach(self.buttons["y+"], 1, 0, 1, 1)
|
grid.attach(self.buttons["y+"], 1, 0, 1, 1)
|
||||||
grid.attach(self.buttons["y-"], 1, 1, 1, 1)
|
grid.attach(self.buttons["y-"], 1, 1, 1, 1)
|
||||||
if self._config.get_config()["main"].getboolean("invert_z", False):
|
if self._config.get_config()["main"].getboolean("invert_z", False):
|
||||||
grid.attach(self.buttons["z+"], 3, 1, 1, 1)
|
|
||||||
grid.attach(self.buttons["z-"], 3, 0, 1, 1)
|
|
||||||
else:
|
|
||||||
grid.attach(self.buttons["z+"], 3, 0, 1, 1)
|
grid.attach(self.buttons["z+"], 3, 0, 1, 1)
|
||||||
grid.attach(self.buttons["z-"], 3, 1, 1, 1)
|
grid.attach(self.buttons["z-"], 3, 1, 1, 1)
|
||||||
|
else:
|
||||||
|
grid.attach(self.buttons["z+"], 3, 1, 1, 1)
|
||||||
|
grid.attach(self.buttons["z-"], 3, 0, 1, 1)
|
||||||
|
|
||||||
grid.attach(self.buttons["home"], 0, 0, 1, 1)
|
grid.attach(self.buttons["home"], 0, 0, 1, 1)
|
||||||
grid.attach(self.buttons["motors_off"], 2, 0, 1, 1)
|
grid.attach(self.buttons["motors_off"], 2, 0, 1, 1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user