summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2003-10-28 21:57:10 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2003-10-28 21:57:10 (GMT)
commit99204301074940a1921e0469295a4bf80250b40c (patch)
tree26aed2ec165239cd55a7e894cf99a5c961e5089b /Lib/idlelib
parent030f68a66abcbcbd51b247bdf9b6ab1237465a35 (diff)
downloadcpython-99204301074940a1921e0469295a4bf80250b40c.zip
cpython-99204301074940a1921e0469295a4bf80250b40c.tar.gz
cpython-99204301074940a1921e0469295a4bf80250b40c.tar.bz2
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.
Diffstat (limited to 'Lib/idlelib')
-rw-r--r--Lib/idlelib/aboutDialog.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/idlelib/aboutDialog.py b/Lib/idlelib/aboutDialog.py
index 8960b00..3d2bcf6 100644
--- a/Lib/idlelib/aboutDialog.py
+++ b/Lib/idlelib/aboutDialog.py
@@ -139,9 +139,11 @@ class AboutDialog(Toplevel):
try:
textFile = codecs.open(fn, 'r')
except IOError:
+ import tkMessageBox
tkMessageBox.showerror(title='File Load Error',
message='Unable to load file '+
- `fileName`+' .')
+ `fn`+' .',
+ parent=self)
return
else:
data = textFile.read()