Commit 38f34ac9 authored by Alessandro Ranellucci's avatar Alessandro Ranellucci

Enable and disable Print and Pause buttons consistently.

parent cf8c8ffa
......@@ -266,9 +266,11 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
ubs.Add(self.sdprintbtn)
self.printbtn=wx.Button(self.panel,-1,"Print",pos=(270,40))
self.printbtn.Bind(wx.EVT_BUTTON,self.printfile)
self.printbtn.Disable()
ubs.Add(self.printbtn)
self.pausebtn=wx.Button(self.panel,-1,"Pause",pos=(360,40))
self.pausebtn.Bind(wx.EVT_BUTTON,self.pause)
self.pausebtn.Disable()
ubs.Add(self.pausebtn)
ubs.Add((50,-1),flag=wx.EXPAND)
try:
......@@ -651,6 +653,7 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
self.status.SetStatusText("Loaded "+name+", %d lines"%(len(self.f),))
self.printbtn.SetLabel("Print")
self.pausebtn.SetLabel("Pause")
self.printbtn.Enable()
threading.Thread(target=self.loadviz).start()
def loadviz(self):
......
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