diff options
author | Georg Brandl <georg@python.org> | 2008-05-17 18:39:55 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2008-05-17 18:39:55 (GMT) |
commit | 14fc4270da5db43574d46d055a5f794ed33b271f (patch) | |
tree | 3d937a96350b067c7dcee6425fe14617dd8b9ef5 /Lib/idlelib/textView.py | |
parent | 330231238327558337b9d8dbabe3a3b02641501d (diff) | |
download | cpython-14fc4270da5db43574d46d055a5f794ed33b271f.zip cpython-14fc4270da5db43574d46d055a5f794ed33b271f.tar.gz cpython-14fc4270da5db43574d46d055a5f794ed33b271f.tar.bz2 |
Tkinter, step 2: adapt imports.
Diffstat (limited to 'Lib/idlelib/textView.py')
-rw-r--r-- | Lib/idlelib/textView.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/idlelib/textView.py b/Lib/idlelib/textView.py index 0e7e663..3f3c247 100644 --- a/Lib/idlelib/textView.py +++ b/Lib/idlelib/textView.py @@ -2,8 +2,8 @@ """ -from Tkinter import * -import tkMessageBox +from tkinter import * +import tkinter.messagebox as tkMessageBox class TextViewer(Toplevel): """A simple text viewer dialog for IDLE @@ -68,7 +68,7 @@ def view_file(parent, title, filename, encoding=None): else: textFile = open(filename, 'r') except IOError: - import tkMessageBox + import tkinter.messagebox as tkMessageBox tkMessageBox.showerror(title='File Load Error', message='Unable to load file %r .' % filename, parent=parent) |