mirror of https://github.com/python/cpython
Complete 2 to 3 conversion
This commit is contained in:
parent
7f987398b7
commit
01180d4679
|
@ -80,7 +80,7 @@ if __name__ == '__main__':
|
|||
root=Tk()
|
||||
root.title('textView test')
|
||||
filename = './textView.py'
|
||||
text = file(filename, 'r').read()
|
||||
text = open(filename, 'r').read()
|
||||
btn1 = Button(root, text='view_text',
|
||||
command=lambda:view_text(root, 'view_text', text))
|
||||
btn1.pack(side=LEFT)
|
||||
|
|
Loading…
Reference in New Issue