Commit 0816e6ca authored by Guillaume Seguin's avatar Guillaume Seguin

Fix bug

parent c8b4626d
...@@ -1566,7 +1566,7 @@ class PronterWindow(wx.Frame,pronsole.pronsole): ...@@ -1566,7 +1566,7 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
self.filename=name self.filename=name
of=open(self.filename) of=open(self.filename)
self.f=[i.replace("\n","").replace("\r","") for i in of] self.f=[i.replace("\n","").replace("\r","") for i in of]
of.close of.close()
self.status.SetStatusText(_("Loaded %s, %d lines") % (name, len(self.f))) self.status.SetStatusText(_("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"))
......
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