mirror of
https://github.com/python/cpython.git
synced 2025-07-19 17:25:54 +00:00
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.
This commit is contained in:
parent
030f68a66a
commit
9920430107
1 changed files with 3 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue