Commit 2cdb7ee3 authored by Kliment Yanev's avatar Kliment Yanev

Add status bar text containing filename and number of lines to the text box/console as well.

parent 7c78d539
...@@ -1332,6 +1332,7 @@ class PronterWindow(MainWindow, pronsole.pronsole): ...@@ -1332,6 +1332,7 @@ class PronterWindow(MainWindow, pronsole.pronsole):
wx.CallAfter(self.printbtn.Enable) wx.CallAfter(self.printbtn.Enable)
wx.CallAfter(self.status.SetStatusText, _("Loaded %s, %d lines") % (self.filename, len(self.f),)) wx.CallAfter(self.status.SetStatusText, _("Loaded %s, %d lines") % (self.filename, len(self.f),))
print _("Loaded %s, %d lines") % (self.filename, len(self.f),)
wx.CallAfter(self.pausebtn.Disable) wx.CallAfter(self.pausebtn.Disable)
wx.CallAfter(self.printbtn.SetLabel, _("Print")) wx.CallAfter(self.printbtn.SetLabel, _("Print"))
...@@ -1395,6 +1396,7 @@ class PronterWindow(MainWindow, pronsole.pronsole): ...@@ -1395,6 +1396,7 @@ class PronterWindow(MainWindow, pronsole.pronsole):
self.f = [line.strip() for line in open(self.filename)] self.f = [line.strip() for line in open(self.filename)]
self.fgcode = gcoder.GCode(self.f) self.fgcode = gcoder.GCode(self.f)
self.status.SetStatusText(_("Loaded %s, %d lines") % (name, len(self.f))) self.status.SetStatusText(_("Loaded %s, %d lines") % (name, len(self.f)))
print _("Loaded %s, %d lines") % (name, len(self.f))
wx.CallAfter(self.printbtn.SetLabel, _("Print")) wx.CallAfter(self.printbtn.SetLabel, _("Print"))
wx.CallAfter(self.pausebtn.SetLabel, _("Pause")) wx.CallAfter(self.pausebtn.SetLabel, _("Pause"))
wx.CallAfter(self.pausebtn.Disable) wx.CallAfter(self.pausebtn.Disable)
......
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