mirror of
				https://github.com/python/cpython.git
				synced 2025-10-30 21:21:22 +00:00 
			
		
		
		
	bugfix for the problem where EditorWindow instances
would appear to freeze for a few seconds on closing in some cases when running under X
This commit is contained in:
		
							parent
							
								
									bdba32051b
								
							
						
					
					
						commit
						67716b5f53
					
				
					 1 changed files with 5 additions and 2 deletions
				
			
		|  | @ -534,11 +534,14 @@ def close_event(self, event): | |||
| 
 | ||||
|     def maybesave(self): | ||||
|         if self.io: | ||||
|             if not self.get_saved(): | ||||
|                 if self.top.state()!='normal':  | ||||
|                     self.top.deiconify() | ||||
|                 self.top.lower() | ||||
|                 self.top.lift() | ||||
|             return self.io.maybesave() | ||||
| 
 | ||||
|     def close(self): | ||||
|         self.top.wm_deiconify() | ||||
|         self.top.tkraise() | ||||
|         reply = self.maybesave() | ||||
|         if reply != "cancel": | ||||
|             self._close() | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Steven M. Gava
						Steven M. Gava