Add a dialog that shows the engine log

This commit is contained in:
Arjen Hiemstra 2015-04-17 11:23:03 +02:00
parent 52d4424635
commit 1118219f7d
4 changed files with 65 additions and 0 deletions

View file

@ -239,6 +239,15 @@ class PrinterApplication(QtApplication):
job.finished.connect(lambda j: node.setMeshData(j.getResult()))
job.start()
@pyqtSlot(result=str)
def getEngineLog(self):
log = ""
for entry in self.getBackend().getLog():
log += entry.decode()
return log
def _onActiveMachineChanged(self):
machine = self.getActiveMachine()
if machine: