[Python-checkins] python/dist/src/Lib/idlelib aboutDialog.py, 1.13, 1.14

nnorwitz at users.sourceforge.net nnorwitz at users.sourceforge.net
Tue Oct 28 16:57:12 EST 2003


Update of /cvsroot/python/python/dist/src/Lib/idlelib
In directory sc8-pr-cvs1:/tmp/cvs-serv20351/Lib/idlelib

Modified Files:
	aboutDialog.py 
Log Message:
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.


Index: aboutDialog.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/idlelib/aboutDialog.py,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** aboutDialog.py	16 Jun 2003 18:46:42 -0000	1.13
--- aboutDialog.py	28 Oct 2003 21:57:10 -0000	1.14
***************
*** 140,146 ****
                  textFile = codecs.open(fn, 'r')
              except IOError:
                  tkMessageBox.showerror(title='File Load Error',
                                         message='Unable to load file '+
!                                        `fileName`+' .')
                  return
              else:
--- 140,148 ----
                  textFile = codecs.open(fn, 'r')
              except IOError:
+                 import tkMessageBox
                  tkMessageBox.showerror(title='File Load Error',
                                         message='Unable to load file '+
!                                        `fn`+' .',
!                                        parent=self)
                  return
              else:





More information about the Python-checkins mailing list