From: Neal Norwitz Date: Tue, 28 Oct 2003 21:58:26 +0000 (+0000) Subject: SF #775057, fix IDLE problem in about dialog X-Git-Tag: v2.3.3c1~102 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=56072b81c4712c3193a7e9203aa04d7868231b9e;p=thirdparty%2FPython%2Fcpython.git SF #775057, fix IDLE problem in about dialog If the file doesn't exist, the code to display an error message was broken --- diff --git a/Lib/idlelib/aboutDialog.py b/Lib/idlelib/aboutDialog.py index 8960b0054e1a..3d2bcf694d19 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()