Commit 99204301 authored by Neal Norwitz's avatar Neal Norwitz

SF #775057, fix IDLE problem in about dialog

If the file doesn't exist, the code to display an error message was broken
Will backport.
parent 030f68a6
...@@ -139,9 +139,11 @@ class AboutDialog(Toplevel): ...@@ -139,9 +139,11 @@ class AboutDialog(Toplevel):
try: try:
textFile = codecs.open(fn, 'r') textFile = codecs.open(fn, 'r')
except IOError: except IOError:
import tkMessageBox
tkMessageBox.showerror(title='File Load Error', tkMessageBox.showerror(title='File Load Error',
message='Unable to load file '+ message='Unable to load file '+
`fileName`+' .') `fn`+' .',
parent=self)
return return
else: else:
data = textFile.read() data = textFile.read()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment