Merge pull request #335 from KazW/experimental

Add checking to pause/resume functions in printcore.py
master
kliment 2013-02-17 13:16:18 -08:00
commit 07fae14c47
4 changed files with 2 additions and 0 deletions

BIN
P-face.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.9 KiB

BIN
plater.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

View File

@ -222,6 +222,7 @@ class printcore():
def pause(self):
"""Pauses the print, saving the current position.
"""
return False if !self.printing
self.paused = True
self.printing = False
self.print_thread.join()
@ -230,6 +231,7 @@ class printcore():
def resume(self):
"""Resumes a paused print.
"""
return False if !self.paused
self.paused = False
self.printing = True
self.print_thread = Thread(target = self._print)

BIN
pronsole.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB