summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/EditorWindow.py
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2015-10-27 07:37:55 (GMT)
committerTerry Jan Reedy <tjreedy@udel.edu>2015-10-27 07:37:55 (GMT)
commit8048776170c474cac2d835ee45d615df3c308dbb (patch)
tree07fc397c9fbb3742b5a063482dae5c54a0aa617a /Lib/idlelib/EditorWindow.py
parent9186a6ac10103eafa2082f5ee90f9390761febf9 (diff)
downloadcpython-8048776170c474cac2d835ee45d615df3c308dbb.zip
cpython-8048776170c474cac2d835ee45d615df3c308dbb.tar.gz
cpython-8048776170c474cac2d835ee45d615df3c308dbb.tar.bz2
Display IDLE warning as a warning rather than as an error.
Clarify message and expected action for beginners.
Diffstat (limited to 'Lib/idlelib/EditorWindow.py')
-rw-r--r--Lib/idlelib/EditorWindow.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/Lib/idlelib/EditorWindow.py b/Lib/idlelib/EditorWindow.py
index 7dcd8fa..5b4ed30 100644
--- a/Lib/idlelib/EditorWindow.py
+++ b/Lib/idlelib/EditorWindow.py
@@ -887,8 +887,10 @@ class EditorWindow(object):
except IOError 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'
+ 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."
% str(err),
parent=self.text)
# for each edit window instance, construct the recent files menu