Gcode was not analyzed when loading through pronterface load file button

master
Kliment Yanev 2013-05-20 11:43:06 +02:00
parent 69793bd295
commit 54fd879825
1 changed files with 1 additions and 0 deletions

View File

@ -1302,6 +1302,7 @@ class PronterWindow(MainWindow, pronsole.pronsole):
of = open(self.filename)
self.f = [i.replace("\n", "").replace("\r", "") for i in of]
of.close()
self.fgcode = gcoder.GCode(self.f)
self.status.SetStatusText(_("Loaded %s, %d lines") % (name, len(self.f)))
wx.CallAfter(self.printbtn.SetLabel, _("Print"))
wx.CallAfter(self.pausebtn.SetLabel, _("Pause"))