mirror of
https://github.com/python/cpython.git
synced 2025-09-27 10:50:04 +00:00
Merged revisions 87119 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r87119 | ronald.oussoren | 2010-12-07 16:28:10 +0100 (Tue, 07 Dec 2010) | 2 lines Fix for issue #10107: Without this patch IDLE on OSX doesn't warn about unsaved files when quitting. ........
This commit is contained in:
parent
269a881d9a
commit
a85b671cb6
3 changed files with 8 additions and 1 deletions
|
@ -48,7 +48,7 @@ class FileList:
|
||||||
def new(self, filename=None):
|
def new(self, filename=None):
|
||||||
return self.EditorWindow(self, filename)
|
return self.EditorWindow(self, filename)
|
||||||
|
|
||||||
def close_all_callback(self, event):
|
def close_all_callback(self, *args, **kwds):
|
||||||
for edit in list(self.inversedict):
|
for edit in list(self.inversedict):
|
||||||
reply = edit.close()
|
reply = edit.close()
|
||||||
if reply == "cancel":
|
if reply == "cancel":
|
||||||
|
|
|
@ -97,6 +97,11 @@ def overrideRootMenu(root, flist):
|
||||||
if flist:
|
if flist:
|
||||||
root.bind('<<close-all-windows>>', flist.close_all_callback)
|
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
|
###check if Tk version >= 8.4.14; if so, use hard-coded showprefs binding
|
||||||
tkversion = root.tk.eval('info patchlevel')
|
tkversion = root.tk.eval('info patchlevel')
|
||||||
|
|
|
@ -17,6 +17,8 @@ Core and Builtins
|
||||||
Library
|
Library
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
- Issue #10107: Warn about unsaved files in IDLE on OSX.
|
||||||
|
|
||||||
- Issue #7904: Changes to urllib.parse.urlsplit to handle schemes as defined by
|
- Issue #7904: Changes to urllib.parse.urlsplit to handle schemes as defined by
|
||||||
RFC3986. Anything before :// is considered a scheme and is followed by an
|
RFC3986. Anything before :// is considered a scheme and is followed by an
|
||||||
authority (or netloc) and by '/' led path, which is optional.
|
authority (or netloc) and by '/' led path, which is optional.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue