- Resolved potential error involved with closing stuff and addressing it
later.
This commit is contained in:
		
							parent
							
								
									3a2505dd18
								
							
						
					
					
						commit
						c2caa0da8a
					
				@ -34,7 +34,7 @@ class MainWindow(wx.Frame):
 | 
				
			|||||||
        self.opts = opts
 | 
					        self.opts = opts
 | 
				
			||||||
        self.args = args
 | 
					        self.args = args
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        self.dirname = '.'
 | 
					        self.dirname = os.path.abspath('.')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        self.filename = 'noname.spdl'
 | 
					        self.filename = 'noname.spdl'
 | 
				
			||||||
        self.load = False
 | 
					        self.load = False
 | 
				
			||||||
@ -265,7 +265,6 @@ class SettingsWindow(wx.Panel):
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        self.win = daddy
 | 
					        self.win = daddy
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
        # Bound on the number of runs
 | 
					        # Bound on the number of runs
 | 
				
			||||||
        self.maxruns = int(Preference.get('maxruns','5'))
 | 
					        self.maxruns = int(Preference.get('maxruns','5'))
 | 
				
			||||||
        r1 = wx.StaticText(self,-1,"Maximum number of runs (0 disables bound)")
 | 
					        r1 = wx.StaticText(self,-1,"Maximum number of runs (0 disables bound)")
 | 
				
			||||||
 | 
				
			|||||||
@ -426,20 +426,23 @@ class ScytherRun(object):
 | 
				
			|||||||
                self.resultwin = resultwin = ResultWindow(self,mainwin,title)
 | 
					                self.resultwin = resultwin = ResultWindow(self,mainwin,title)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                def attackDone(attack,total,done):
 | 
					                def attackDone(attack,total,done):
 | 
				
			||||||
                    if done < total:
 | 
					                    if resultwin:
 | 
				
			||||||
                        txt = "Generating attack graphs (%i of %i done)." % (done,total)
 | 
					                        if done < total:
 | 
				
			||||||
                    else:
 | 
					                            txt = "Generating attack graphs (%i of %i done)." % (done,total)
 | 
				
			||||||
                        txt = "Done."
 | 
					                        else:
 | 
				
			||||||
                    resultwin.SetStatusText(txt)
 | 
					                            txt = "Done."
 | 
				
			||||||
                    resultwin.Refresh()
 | 
					                        resultwin.SetStatusText(txt)
 | 
				
			||||||
 | 
					                        resultwin.Refresh()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                def claimDone(claim):
 | 
					                def claimDone(claim):
 | 
				
			||||||
                    if claim.button and len(claim.attacks) > 0:
 | 
					                    if resultwin:
 | 
				
			||||||
                        claim.button.Enable()
 | 
					                        if claim.button and len(claim.attacks) > 0:
 | 
				
			||||||
                        #resultwin.Refresh()
 | 
					                            claim.button.Enable()
 | 
				
			||||||
 | 
					                            #resultwin.Refresh()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                def allDone():
 | 
					                def allDone():
 | 
				
			||||||
                    resultwin.SetCursor(wx.StockCursor(wx.CURSOR_ARROW))
 | 
					                    if resultwin:
 | 
				
			||||||
 | 
					                        resultwin.SetCursor(wx.StockCursor(wx.CURSOR_ARROW))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                resultwin.Center()
 | 
					                resultwin.Center()
 | 
				
			||||||
                resultwin.Show(True)
 | 
					                resultwin.Show(True)
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user