- Resolved potential error involved with closing stuff and addressing it

later.
This commit is contained in:
ccremers 2006-08-09 09:53:52 +00:00
parent 3a2505dd18
commit c2caa0da8a
2 changed files with 14 additions and 12 deletions

View File

@ -34,7 +34,7 @@ class MainWindow(wx.Frame):
self.opts = opts
self.args = args
self.dirname = '.'
self.dirname = os.path.abspath('.')
self.filename = 'noname.spdl'
self.load = False
@ -265,7 +265,6 @@ class SettingsWindow(wx.Panel):
self.win = daddy
# Bound on the number of runs
self.maxruns = int(Preference.get('maxruns','5'))
r1 = wx.StaticText(self,-1,"Maximum number of runs (0 disables bound)")

View File

@ -426,6 +426,7 @@ class ScytherRun(object):
self.resultwin = resultwin = ResultWindow(self,mainwin,title)
def attackDone(attack,total,done):
if resultwin:
if done < total:
txt = "Generating attack graphs (%i of %i done)." % (done,total)
else:
@ -434,11 +435,13 @@ class ScytherRun(object):
resultwin.Refresh()
def claimDone(claim):
if resultwin:
if claim.button and len(claim.attacks) > 0:
claim.button.Enable()
#resultwin.Refresh()
def allDone():
if resultwin:
resultwin.SetCursor(wx.StockCursor(wx.CURSOR_ARROW))
resultwin.Center()