diff options
Diffstat (limited to 'Lib/idlelib/aboutDialog.py')
-rw-r--r-- | Lib/idlelib/aboutDialog.py | 4 |
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() |