[Python-checkins] r50784 - python/trunk/Lib/idlelib/EditorWindow.py
ronald.oussoren
python-checkins at python.org
Sun Jul 23 11:41:09 CEST 2006
Author: ronald.oussoren
Date: Sun Jul 23 11:41:09 2006
New Revision: 50784
Modified:
python/trunk/Lib/idlelib/EditorWindow.py
Log:
Without this patch CMD-W won't close EditorWindows on MacOS X. This solves
part of bug #1517990.
Modified: python/trunk/Lib/idlelib/EditorWindow.py
==============================================================================
--- python/trunk/Lib/idlelib/EditorWindow.py (original)
+++ python/trunk/Lib/idlelib/EditorWindow.py Sun Jul 23 11:41:09 2006
@@ -121,6 +121,9 @@
self.top.protocol("WM_DELETE_WINDOW", self.close)
self.top.bind("<<close-window>>", self.close_event)
+ if macosxSupport.runningAsOSXApp():
+ # Command-W on editorwindows doesn't work without this.
+ text.bind('<<close-window', self.close_event)
text.bind("<<cut>>", self.cut)
text.bind("<<copy>>", self.copy)
text.bind("<<paste>>", self.paste)
More information about the Python-checkins
mailing list