mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
Display IDLE warning as a warning rather than as an error.
Clarify message and expected action for beginners.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user