mirror of
https://github.com/python/cpython.git
synced 2025-09-27 10:50:04 +00:00
Merge with 3.5
This commit is contained in:
commit
b44dffdca1
1 changed files with 5 additions and 3 deletions
|
@ -887,9 +887,11 @@ class EditorWindow(object):
|
||||||
except OSError as err:
|
except OSError as err:
|
||||||
if not getattr(self.root, "recentfilelist_error_displayed", False):
|
if not getattr(self.root, "recentfilelist_error_displayed", False):
|
||||||
self.root.recentfilelist_error_displayed = True
|
self.root.recentfilelist_error_displayed = True
|
||||||
tkMessageBox.showerror(title='IDLE Error',
|
tkMessageBox.showwarning(title='IDLE Warning',
|
||||||
message='Unable to update Recent Files list:\n%s'
|
message="Cannot update File menu Recent Files list. "
|
||||||
% str(err),
|
"Your operating system says:\n%s\n"
|
||||||
|
"Select OK and IDLE will continue without updating."
|
||||||
|
% self._filename_to_unicode(str(err)),
|
||||||
parent=self.text)
|
parent=self.text)
|
||||||
# for each edit window instance, construct the recent files menu
|
# for each edit window instance, construct the recent files menu
|
||||||
for instance in self.top.instance_dict:
|
for instance in self.top.instance_dict:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue