Commit 59a3a9e5 authored by Guillaume Seguin's avatar Guillaume Seguin

Use a boolean instead of an int for self.slicing

parent 18187f60
...@@ -215,7 +215,7 @@ class PronterWindow(MainWindow, pronsole.pronsole): ...@@ -215,7 +215,7 @@ class PronterWindow(MainWindow, pronsole.pronsole):
self.t = Tee(self.catchprint) self.t = Tee(self.catchprint)
self.stdout = sys.stdout self.stdout = sys.stdout
self.slicing = 0 self.slicing = False
self.mini = False self.mini = False
self.p.sendcb = self.sentcb self.p.sendcb = self.sentcb
self.p.preprintsendcb = self.preprintsendcb self.p.preprintsendcb = self.preprintsendcb
...@@ -1256,7 +1256,7 @@ Printrun. If not, see <http://www.gnu.org/licenses/>.""" ...@@ -1256,7 +1256,7 @@ Printrun. If not, see <http://www.gnu.org/licenses/>."""
self.load_gcode_async(self.model_to_gcode_filename(self.filename)) self.load_gcode_async(self.model_to_gcode_filename(self.filename))
except: except:
self.filename = fn self.filename = fn
self.slicing = 0 self.slicing = False
self.slicep = None self.slicep = None
def slice(self, filename): def slice(self, filename):
...@@ -1266,7 +1266,7 @@ Printrun. If not, see <http://www.gnu.org/licenses/>.""" ...@@ -1266,7 +1266,7 @@ Printrun. If not, see <http://www.gnu.org/licenses/>."""
self.cout = StringIO.StringIO() self.cout = StringIO.StringIO()
self.filename = filename self.filename = filename
self.stopsf = 0 self.stopsf = 0
self.slicing = 1 self.slicing = True
threading.Thread(target = self.slice_func).start() threading.Thread(target = self.slice_func).start()
threading.Thread(target = self.slice_monitor).start() threading.Thread(target = self.slice_monitor).start()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment