mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	gh-112898: warn about unsaved files when quitting IDLE on macOS (#112939)
* gh-112898: warn about unsaved files when quitting IDLE on macOS Implement the TK function ``::tk::mac::Quit`` on macOS to ensure that IDLE asks about saving unsaved files when quitting IDLE. Co-authored-by: Christopher Chavez chrischavez@gmx.us
This commit is contained in:
		
							parent
							
								
									c27e9d5d17
								
							
						
					
					
						commit
						3251ba8f1a
					
				
					 2 changed files with 2 additions and 1 deletions
				
			
		|  | @ -221,7 +221,7 @@ def help_dialog(event=None): | |||
|         # The binding above doesn't reliably work on all versions of Tk | ||||
|         # on macOS. Adding command definition below does seem to do the | ||||
|         # right thing for now. | ||||
|         root.createcommand('exit', flist.close_all_callback) | ||||
|         root.createcommand('::tk::mac::Quit', flist.close_all_callback) | ||||
| 
 | ||||
|     if isCarbonTk(): | ||||
|         # for Carbon AquaTk, replace the default Tk apple menu | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Ronald Oussoren
						Ronald Oussoren