mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 21:51:50 +00:00 
			
		
		
		
	bpo-40128: Fix IDLE autocomplete on macOS (GH-26672)
In particular, when running with tk8.6.8, as in PSF 3.9.
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
(cherry picked from commit 3ec3ee7d2e)
Co-authored-by: Kaustubh J <kaustubhkj@gmail.com>
			
			
This commit is contained in:
		
							parent
							
								
									57b3ca7f0a
								
							
						
					
					
						commit
						a9e20cf7bb
					
				
					 2 changed files with 4 additions and 0 deletions
				
			
		|  | @ -203,6 +203,7 @@ def show_window(self, comp_lists, index, complete, mode, userWantsWin): | |||
|         scrollbar.config(command=listbox.yview) | ||||
|         scrollbar.pack(side=RIGHT, fill=Y) | ||||
|         listbox.pack(side=LEFT, fill=BOTH, expand=True) | ||||
|         acw.update_idletasks() # Need for tk8.6.8 on macOS: #40128. | ||||
|         acw.lift()  # work around bug in Tk 8.5.18+ (issue #24570) | ||||
| 
 | ||||
|         # Initialize the listbox selection | ||||
|  |  | |||
|  | @ -0,0 +1,3 @@ | |||
| Mostly fix completions on macOS when not using tcl/tk 8.6.11 (as with 3.9). | ||||
| The added update_idletask call should be harmless and possibly helpful | ||||
| otherwise. | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Miss Islington (bot)
						Miss Islington (bot)