mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	Fix for issue #10107: Without this patch IDLE on OSX doesn't warn about unsaved files when quitting.
This commit is contained in:
		
							parent
							
								
									0499d0b03a
								
							
						
					
					
						commit
						10e05e17a3
					
				
					 3 changed files with 18 additions and 1 deletions
				
			
		|  | @ -48,7 +48,7 @@ def gotofileline(self, filename, lineno=None): | |||
|     def new(self, filename=None): | ||||
|         return self.EditorWindow(self, filename) | ||||
| 
 | ||||
|     def close_all_callback(self, event): | ||||
|     def close_all_callback(self, *args, **kwds): | ||||
|         for edit in list(self.inversedict): | ||||
|             reply = edit.close() | ||||
|             if reply == "cancel": | ||||
|  |  | |||
|  | @ -103,6 +103,11 @@ def config_dialog(event=None): | |||
|     if flist: | ||||
|         root.bind('<<close-all-windows>>', flist.close_all_callback) | ||||
| 
 | ||||
|         # The binding above doesn't reliably work on all versions of Tk | ||||
|         # on MacOSX. Adding command definition below does seem to do the | ||||
|         # right thing for now. | ||||
|         root.createcommand('exit', flist.close_all_callback) | ||||
| 
 | ||||
| 
 | ||||
|     ###check if Tk version >= 8.4.14; if so, use hard-coded showprefs binding | ||||
|     tkversion = root.tk.eval('info patchlevel') | ||||
|  |  | |||
							
								
								
									
										12
									
								
								Misc/NEWS
									
										
									
									
									
								
							
							
						
						
									
										12
									
								
								Misc/NEWS
									
										
									
									
									
								
							|  | @ -2,6 +2,18 @@ | |||
| Python News | ||||
| +++++++++++ | ||||
| 
 | ||||
| What's New in Python 3.2 Beta 2? | ||||
| ================================ | ||||
| 
 | ||||
| *Release date: XXXX-XX-XX* | ||||
| 
 | ||||
| 
 | ||||
| Library | ||||
| ------- | ||||
| 
 | ||||
| * Issue #10107: Warn about unsaved files in IDLE on OSX. | ||||
| 
 | ||||
| 
 | ||||
| What's New in Python 3.2 Beta 1? | ||||
| ================================ | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Ronald Oussoren
						Ronald Oussoren