Add support for displaying print time and print material amount

This commit is contained in:
Arjen Hiemstra 2015-04-20 17:55:25 +02:00
parent daa6e04d8c
commit 1bda4ee23a
2 changed files with 17 additions and 10 deletions

View file

@ -57,7 +57,7 @@ class CuraEngineBackend(Backend):
def getEngineCommand(self):
return [Preferences.getInstance().getValue("backend/location"), '-vv', '--connect', "127.0.0.1:{0}".format(self._port)]
changeTimerFinished = Signal()
printDurationMessage = Signal()
def _onSceneChanged(self, source):
if (type(source) is not SceneNode) or (source is self._scene.getRoot()):
@ -94,7 +94,7 @@ class CuraEngineBackend(Backend):
self._scene.gcode_list.insert(0, message.data.decode('utf-8', 'replace'))
def _onObjectPrintTimeMessage(self, message):
pass
self.printDurationMessage.emit(message.time, message.material_amount)
def _createSocket(self):
super()._createSocket()