Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b44dffd

Browse files
committed
Merge with 3.5
2 parents dd1e670 + b1f1c5e commit b44dffd

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

Lib/idlelib/EditorWindow.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -887,9 +887,11 @@ def update_recent_files_list(self, new_file=None):
887887
except OSError as err:
888888
if not getattr(self.root, "recentfilelist_error_displayed", False):
889889
self.root.recentfilelist_error_displayed = True
890-
tkMessageBox.showerror(title='IDLE Error',
891-
message='Unable to update Recent Files list:\n%s'
892-
% str(err),
890+
tkMessageBox.showwarning(title='IDLE Warning',
891+
message="Cannot update File menu Recent Files list. "
892+
"Your operating system says:\n%s\n"
893+
"Select OK and IDLE will continue without updating."
894+
% self._filename_to_unicode(str(err)),
893895
parent=self.text)
894896
# for each edit window instance, construct the recent files menu
895897
for instance in self.top.instance_dict:

0 commit comments

Comments
 (0)