]> granicus.if.org Git - python/commitdiff
Display IDLE warning as a warning rather than as an error.
authorTerry Jan Reedy <tjreedy@udel.edu>
Tue, 27 Oct 2015 07:37:55 +0000 (03:37 -0400)
committerTerry Jan Reedy <tjreedy@udel.edu>
Tue, 27 Oct 2015 07:37:55 +0000 (03:37 -0400)
Clarify message and expected action for beginners.

Lib/idlelib/EditorWindow.py

index 7dcd8fab28d3a59c61d2ee680c3293fb57446c8e..5b4ed30323627e9208cb18d961d75dcb20ad42f4 100644 (file)
@@ -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