diff options
author | Georg Brandl <georg@python.org> | 2008-05-16 15:48:15 +0000 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2008-05-16 15:48:15 +0000 |
commit | ad9afeb8f02db9a13d2ed8e45361ecbc0d19bd32 (patch) | |
tree | 40cd28e4b9d339d38ac00792f37948fdef291cbf /Lib/idlelib/textView.py | |
parent | bbc57d73a0f0d1476d9c23b920ecc1ef8212a554 (diff) | |
download | cpython-git-ad9afeb8f02db9a13d2ed8e45361ecbc0d19bd32.tar.gz |
Tkinter rename, step 2: fix imports and add stub modules.
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 0e7e663185..3f3c247789 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) |