chiark / gitweb /
Use an alternative method to check for wxPython if distutils is not available
[cura.git] / Cura / serialCommunication.py
index efc6e72d38f0836722117a5cca9effd2348faa53..1b095484a5477bcc5295aec0f1970fc2f871caeb 100644 (file)
@@ -48,7 +48,7 @@ class serialComm(object):
                sys.stdout.write('progress:%d\n' % (lineNr))
 
        def mcZChange(self, newZ):
-               pass
+               sys.stdout.write('changeZ:%f\n' % (newZ))
 
        def monitorStdin(self):
                while not (self._comm.isClosed() or sys.stdin.closed):
@@ -68,6 +68,10 @@ class serialComm(object):
                                self._comm.sendCommand(line[1])
                        elif line[0] == 'START':
                                self._comm.printGCode(self._gcodeList)
+                       elif line[0] == 'PAUSE':
+                               self._comm.setPause(True)
+                       elif line[0] == 'RESUME':
+                               self._comm.setPause(False)
                        else:
                                sys.stderr.write(str(line))