mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 05:31:20 +00:00 
			
		
		
		
	Patch #1362975: Rework CodeContext indentation algorithm to
avoid hard-coding pixel widths. Also make the text's scrollbar a child of the text frame, not the top widget.
This commit is contained in:
		
							parent
							
								
									2607e6c021
								
							
						
					
					
						commit
						4ebbefe677
					
				
					 3 changed files with 64 additions and 18 deletions
				
			
		|  | @ -102,8 +102,8 @@ def __init__(self, flist=None, filename=None, key=None, root=None): | |||
|             self.top.instance_dict = {} | ||||
|         self.recent_files_path = os.path.join(idleConf.GetUserCfgDir(), | ||||
|                 'recent-files.lst') | ||||
|         self.vbar = vbar = Scrollbar(top, name='vbar') | ||||
|         self.text_frame = text_frame = Frame(top) | ||||
|         self.vbar = vbar = Scrollbar(text_frame, name='vbar') | ||||
|         self.width = idleConf.GetOption('main','EditorWindow','width') | ||||
|         self.text = text = MultiCallCreator(Text)( | ||||
|                 text_frame, name='text', padx=5, wrap='none', | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Martin v. Löwis
						Martin v. Löwis