Edited pronterface.py via GitHub

master
Skateboss 2011-08-27 08:45:35 +02:00
parent af977d4689
commit 313163721e
1 changed files with 7 additions and 1 deletions

View File

@ -1023,7 +1023,13 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
threading.Thread(target=self.loadviz).start()
def loadviz(self):
print pronsole.totalelength(self.f), _("mm of filament used in this print")
Xtot,Ytot,Ztot = pronsole.measurements(self.f)
Xmin,Xmax,Ymin,Ymax,Zmin,Zmax = pronsole.minmaxpoints(self.f)
print pronsole.totalelength(self.f), _("mm of filament used in this print\n")
Xtot,Ytot,Ztot= pronsole.measurements(self.f)
print ("the print goes from"),_(Xmin),("mm to"),_(Xmax),("mm in X\nand is"),_(Xtot),("mm wide\n")
print ("the print goes from"),_(Ymin),("mm to"),_(Ymax),("mm in Y\nand is"),_(Ytot),("mm wide\n")
print ("the print goes from"),_(Zmin),("mm to"),_(Zmax),("mm in Z\nand is"),_(Ztot),("mm high\n")
self.gviz.clear()
self.gwindow.p.clear()
for i in self.f: