Commit b1113f06 authored by Guillaume Seguin's avatar Guillaume Seguin

Woops, typoz

parent 595edf60
...@@ -45,9 +45,8 @@ import printcore ...@@ -45,9 +45,8 @@ import printcore
from printrun.printrun_utils import pixmapfile, configfile from printrun.printrun_utils import pixmapfile, configfile
from printrun.gui import MainWindow from printrun.gui import MainWindow
import pronsole import pronsole
from pronsole import dosify
def dosify(name): import gcoder
return os.path.split(name)[1].split(".")[0][:8]+".g"
def parse_temperature_report(report, key): def parse_temperature_report(report, key):
if key in report: if key in report:
...@@ -1283,7 +1282,7 @@ class PronterWindow(MainWindow, pronsole.pronsole): ...@@ -1283,7 +1282,7 @@ class PronterWindow(MainWindow, pronsole.pronsole):
threading.Thread(target = self.loadviz).start() threading.Thread(target = self.loadviz).start()
def loadviz(self): def loadviz(self):
gcode = pronsole.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) 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")
......
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