Workaround for #160, as on MacOS you seem to be able to press the jog buttons during printing.

This commit is contained in:
daid 2012-07-19 14:38:31 +02:00
parent 16c8c4f588
commit 901eae59da

View File

@ -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")