summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2015-10-27 07:38:31 (GMT)
committerTerry Jan Reedy <tjreedy@udel.edu>2015-10-27 07:38:31 (GMT)
commitb44dffdca1d950284851a540b3a91715e6848f6a (patch)
treec78711b33f75198e1c2b37f0a280b1f61421357a /Lib/idlelib
parentdd1e670758794b1dccdd42aa1f8ccddabdd406c2 (diff)
parentb1f1c5ea35816c6010be5be654342186e221739f (diff)
downloadcpython-b44dffdca1d950284851a540b3a91715e6848f6a.zip
cpython-b44dffdca1d950284851a540b3a91715e6848f6a.tar.gz
cpython-b44dffdca1d950284851a540b3a91715e6848f6a.tar.bz2
Merge with 3.5
Diffstat (limited to 'Lib/idlelib')
-rw-r--r--Lib/idlelib/EditorWindow.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/Lib/idlelib/EditorWindow.py b/Lib/idlelib/EditorWindow.py
index 0196344..8d6549c 100644
--- a/Lib/idlelib/EditorWindow.py
+++ b/Lib/idlelib/EditorWindow.py
@@ -887,9 +887,11 @@ class EditorWindow(object):
except OSError as err:
if not getattr(self.root, "recentfilelist_error_displayed", False):
self.root.recentfilelist_error_displayed = True
- tkMessageBox.showerror(title='IDLE Error',
- message='Unable to update Recent Files list:\n%s'
- % str(err),
+ tkMessageBox.showwarning(title='IDLE Warning',
+ message="Cannot update File menu Recent Files list. "
+ "Your operating system says:\n%s\n"
+ "Select OK and IDLE will continue without updating."
+ % self._filename_to_unicode(str(err)),
parent=self.text)
# for each edit window instance, construct the recent files menu
for instance in self.top.instance_dict: