mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 23:21:29 +00:00 
			
		
		
		
	Geiger Ho's patch for better subclassing
This commit is contained in:
		
							parent
							
								
									2b6edce773
								
							
						
					
					
						commit
						72de9c7a9c
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -187,7 +187,7 @@ def draw(self, x, y):
 | 
			
		|||
                # _IsExpandable() was mistaken; that's allowed
 | 
			
		||||
                return y+17
 | 
			
		||||
            for item in sublist:
 | 
			
		||||
                child = TreeNode(self.canvas, self, item)
 | 
			
		||||
                child = self.__class__(self.canvas, self, item)
 | 
			
		||||
                self.children.append(child)
 | 
			
		||||
        cx = x+20
 | 
			
		||||
        cy = y+17
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue