Workaround for #160, as on MacOS you seem to be able to press the jog buttons during printing.
This commit is contained in:
1 parent
16c8c4f588
commit
901eae59da
1 file changed
+2
@@ -68,6 +68,8 @@ class PrintCommandButton(buttons.GenBitmapButton):
|
||||
self.Bind(wx.EVT_BUTTON, self.OnClick)
|
||||
|
||||
def OnClick(self, e):
|
||||
if self.parent.printIdx != None:
|
||||
return;
|
||||
self.parent.sendCommand("G91")
|
||||
self.parent.sendCommand(self.command)
|
||||
self.parent.sendCommand("G90")
|
||||
|
||||
Reference in new issue
Block a user