From: Terry Jan Reedy Date: Tue, 27 Oct 2015 07:37:55 +0000 (-0400) Subject: Display IDLE warning as a warning rather than as an error. X-Git-Tag: v2.7.11rc1~55 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8048776170c474cac2d835ee45d615df3c308dbb;p=python Display IDLE warning as a warning rather than as an error. Clarify message and expected action for beginners. --- diff --git a/Lib/idlelib/EditorWindow.py b/Lib/idlelib/EditorWindow.py index 7dcd8fab28..5b4ed30323 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