[Python-checkins] cpython (2.7): Display IDLE warning as a warning rather than as an error.

terry.reedy python-checkins at python.org
Tue Oct 27 03:38:46 EDT 2015


https://hg.python.org/cpython/rev/3c1d9e403a1d
changeset:   98865:3c1d9e403a1d
branch:      2.7
parent:      98850:acc453391c5b
user:        Terry Jan Reedy <tjreedy at udel.edu>
date:        Tue Oct 27 03:37:55 2015 -0400
summary:
  Display IDLE warning as a warning rather than as an error.
Clarify message and expected action for beginners.

files:
  Lib/idlelib/EditorWindow.py |  6 ++++--
  1 files changed, 4 insertions(+), 2 deletions(-)


diff --git a/Lib/idlelib/EditorWindow.py b/Lib/idlelib/EditorWindow.py
--- a/Lib/idlelib/EditorWindow.py
+++ b/Lib/idlelib/EditorWindow.py
@@ -887,8 +887,10 @@
         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

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list