mirror of
				https://github.com/python/cpython.git
				synced 2025-10-30 21:21:22 +00:00 
			
		
		
		
	Issue #4116: Resolve member name conflict in ScrolledCanvas.__init__
This commit is contained in:
		
							parent
							
								
									65e8fc7fc1
								
							
						
					
					
						commit
						bb9b1f1d4a
					
				
					 2 changed files with 4 additions and 2 deletions
				
			
		|  | @ -359,7 +359,7 @@ class ScrolledCanvas(TK.Frame): | |||
|     def __init__(self, master, width=500, height=350, | ||||
|                                           canvwidth=600, canvheight=500): | ||||
|         TK.Frame.__init__(self, master, width=width, height=height) | ||||
|         self._root = self.winfo_toplevel() | ||||
|         self._rootwindow = self.winfo_toplevel() | ||||
|         self.width, self.height = width, height | ||||
|         self.canvwidth, self.canvheight = canvwidth, canvheight | ||||
|         self.bg = "white" | ||||
|  | @ -379,7 +379,7 @@ def __init__(self, master, width=500, height=350, | |||
|         self.hscroll.grid(padx=1, in_ = self, pady=1, row=1, | ||||
|                 column=0, rowspan=1, columnspan=1, sticky='news') | ||||
|         self.reset() | ||||
|         self._root.bind('<Configure>', self.onResize) | ||||
|         self._rootwindow.bind('<Configure>', self.onResize) | ||||
| 
 | ||||
|     def reset(self, canvwidth=None, canvheight=None, bg = None): | ||||
|         """Ajust canvas and scrollbars according to given canvas size.""" | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Martin v. Löwis
						Martin v. Löwis