Allow postprocessing before sending data to the printer

From OutputDevice.py:
"output device subclasses are completely free to implement writing however they want, though you should emit writeStarted and related signals whenever certain events happen related to the write process."
This commit is contained in:
fieldOfView 2016-11-29 17:20:10 +01:00
parent 7082ff7d68
commit 91e8ac6868

View file

@ -532,6 +532,7 @@ class NetworkPrinterOutputDevice(PrinterOutputDevice):
Application.getInstance().showPrintMonitor.emit(True)
self._print_finished = True
self.writeStarted.emit(self)
self._gcode = getattr(Application.getInstance().getController().getScene(), "gcode_list")
print_information = Application.getInstance().getPrintInformation()