toolbar.AddLabelTool(6," "+_("Fit to plate"),wx.Image(imagefile('fit.png'),wx.BITMAP_TYPE_PNG).ConvertToBitmap(),shortHelp=_("Fit to plate [F]"),longHelp='')
self.logError(_("Not paused, unable to resume. Start a print first."))
...
...
@@ -1417,6 +1420,23 @@ class pronsole(cmd.Cmd):
self.log(_("home e - set extruder position to zero (Using G92)"))
self.log(_("home xyze - homes all axes and zeroes the extruder (Using G28 and G92)"))
defdo_off(self,l):
self.off()
defoff(self):
ifself.p.online:
ifself.p.printing:self.pause(None)
self.onecmd("M84; motors off")
self.onecmd("M104 S0; extruder off")
self.onecmd("M140 S0; heatbed off")
self.onecmd("M107; fan off")
self.onecmd("M81; power supply off")
else:
self.logError(_("Printer is not online. Unable to turn it off."))
defhelp_off(self):
self.log(_("Turns off everything on the printer"))
defadd_cmdline_arguments(self,parser):
parser.add_argument('-c','--conf','--config',help=_("load this file on startup instead of .pronsolerc ; you may chain config files, if so settings auto-save will use the last specified file"),action="append",default=[])
parser.add_argument('-e','--execute',help=_("executes command after configuration/.pronsolerc is loaded ; macros/settings from these commands are not autosaved"),action="append",default=[])