Commit 9816ea7c authored by Guillaume Seguin's avatar Guillaume Seguin

Cleanup some code in pronterface

parent f15b0cda
...@@ -1284,12 +1284,11 @@ class PronterWindow(MainWindow, pronsole.pronsole): ...@@ -1284,12 +1284,11 @@ class PronterWindow(MainWindow, pronsole.pronsole):
def loadviz(self): def loadviz(self):
gcode = gcoder.GCode(self.f) gcode = gcoder.GCode(self.f)
gcode.measure() gcode.measure()
Xtot, Ytot, Ztot, Xmin, Xmax, Ymin, Ymax, Zmin, Zmax = (gcode.width, gcode.depth, gcode.height, gcode.xmin, gcode.xmax, gcode.ymin, gcode.ymax, gcode.zmin, gcode.zmax)
print gcode.filament_length(), _("mm of filament used in this print\n") print gcode.filament_length(), _("mm of filament used in this print\n")
print _("the print goes from %f mm to %f mm in X\nand is %f mm wide\n") % (Xmin, Xmax, Xtot) print _("the print goes from %f mm to %f mm in X\nand is %f mm wide\n") % (gcode.xmin, gcode.xmax, gcode.width)
print _("the print goes from %f mm to %f mm in Y\nand is %f mm wide\n") % (Ymin, Ymax, Ytot) print _("the print goes from %f mm to %f mm in Y\nand is %f mm wide\n") % (gcode.ymin, gcode.ymax, gcode.depth)
print _("the print goes from %f mm to %f mm in Z\nand is %f mm high\n") % (Zmin, Zmax, Ztot) print _("the print goes from %f mm to %f mm in Z\nand is %f mm high\n") % (gcode.zmin, gcode.zmax, gcode.height)
print _("Estimated duration (pessimistic): "), gcode.estimate_duration(self.f) print _("Estimated duration (pessimistic): "), gcode.estimate_duration()
#import time #import time
#t0 = time.time() #t0 = time.time()
self.gviz.clear() self.gviz.clear()
......
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