mirror of
				https://github.com/python/cpython.git
				synced 2025-10-30 21:21:22 +00:00 
			
		
		
		
	Whoops -- referenced self.top before it was set.
This commit is contained in:
		
							parent
							
								
									4eaadf002e
								
							
						
					
					
						commit
						ad24ae10df
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -18,9 +18,9 @@ def __init__(self, root=None, flist=None): | ||||||
|             root = top = Tk() |             root = top = Tk() | ||||||
|         else: |         else: | ||||||
|             top = Toplevel(root) |             top = Toplevel(root) | ||||||
|         self.top.protocol("WM_DELETE_WINDOW", self.close) |  | ||||||
|         self.root = root |         self.root = root | ||||||
|         self.top = top |         self.top = top | ||||||
|  |         self.top.protocol("WM_DELETE_WINDOW", self.close) | ||||||
|         top.wm_title("Stack viewer") |         top.wm_title("Stack viewer") | ||||||
|         # Create help label |         # Create help label | ||||||
|         self.helplabel = Label(top, |         self.helplabel = Label(top, | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Guido van Rossum
						Guido van Rossum