Fix bug
parent
c8b4626d33
commit
0816e6cafe
|
@ -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"))
|
||||||
|
|
Loading…
Reference in New Issue