Maybe solve issue #13. But most likely not.

This commit is contained in:
daid 2012-03-20 14:50:22 +01:00
parent c9bd9940c1
commit bc121033e8

View file

@ -75,10 +75,12 @@ class sliceProgessPanel(wx.Panel):
def OnSliceDone(self, result):
self.progressGauge.Destroy()
self.abortButton.Destroy()
self.progressLog = result.progressLog
self.sizer.Remove(self.abortButton)
self.logButton = wx.Button(self, -1, "Show Log")
self.abortButton = wx.Button(self, -1, "X", style=wx.BU_EXACTFIT)
self.Bind(wx.EVT_BUTTON, self.OnShowLog, self.logButton)
self.Bind(wx.EVT_BUTTON, self.OnAbort, self.abortButton)
self.sizer.Add(self.logButton, 0)
if result.returnCode == 0:
self.statusText.SetLabel("Ready.")