mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 23:21:29 +00:00 
			
		
		
		
	Wait for visibility before setting a grab. Fixes #946153.
This commit is contained in:
		
							parent
							
								
									f901abdd62
								
							
						
					
					
						commit
						b217cd802e
					
				
					 3 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -119,6 +119,7 @@ def go(self, dir_or_file=os.curdir, pattern="*", default="", key=None):
 | 
			
		|||
        self.set_selection(default)
 | 
			
		||||
        self.filter_command()
 | 
			
		||||
        self.selection.focus_set()
 | 
			
		||||
        self.top.wait_visibility() # window needs to be visible for the grab
 | 
			
		||||
        self.top.grab_set()
 | 
			
		||||
        self.how = None
 | 
			
		||||
        self.master.mainloop()          # Exited by self.quit(how)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue