Woops, typoz

master
Guillaume Seguin 2013-05-15 19:42:38 +02:00
parent 595edf6064
commit b1113f06a5
1 changed files with 3 additions and 4 deletions

View File

@ -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):
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")