Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a37e147

Browse filesBrowse files
[3.11] gh-112898: warn about unsaved files when quitting IDLE on macOS (GH-112939) (#112961)
gh-112898: warn about unsaved files when quitting IDLE on macOS (GH-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. (cherry picked from commit 3251ba8) Co-authored-by: Christopher Chavez chrischavez@gmx.us Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
1 parent 449fdfc commit a37e147
Copy full SHA for a37e147

File tree

Expand file treeCollapse file tree

2 files changed

+2
-1
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+2
-1
lines changed

‎Lib/idlelib/macosx.py

Copy file name to clipboardExpand all lines: Lib/idlelib/macosx.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ def help_dialog(event=None):
222222
# The binding above doesn't reliably work on all versions of Tk
223223
# on macOS. Adding command definition below does seem to do the
224224
# right thing for now.
225-
root.createcommand('exit', flist.close_all_callback)
225+
root.createcommand('::tk::mac::Quit', flist.close_all_callback)
226226

227227
if isCarbonTk():
228228
# for Carbon AquaTk, replace the default Tk apple menu
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix processing unsaved files when quitting IDLE on macOS.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.