Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commitceabbea

Browse files
[3.12]gh-112898: warn about unsaved files when quitting IDLE on macOS (GH-112939) (#112960)
gh-112898: warn about unsaved files when quitting IDLE on macOS (GH-112939)*gh-112898: warn about unsaved files when quitting IDLE on macOSImplement the TK function ``::tk::mac::Quit`` on macOS toensure that IDLE asks about saving unsaved files whenquitting IDLE.(cherry picked from commit3251ba8)Co-authored-by: Christopher Chavez chrischavez@gmx.usCo-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
1 parente4d2fb2 commitceabbea

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

‎Lib/idlelib/macosx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ def help_dialog(event=None):
221221
# The binding above doesn't reliably work on all versions of Tk
222222
# on macOS. Adding command definition below does seem to do the
223223
# right thing for now.
224-
root.createcommand('exit',flist.close_all_callback)
224+
root.createcommand('::tk::mac::Quit',flist.close_all_callback)
225225

226226
ifisCarbonTk():
227227
# for Carbon AquaTk, replace the default Tk apple menu
Lines 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)

[8]ページ先頭

©2009-2025 Movatter.jp