Tkinter rename, step 2: fix imports and add stub modules.

This commit is contained in:
Georg Brandl 2008-05-16 15:48:15 +00:00
parent bbc57d73a0
commit ad9afeb8f0
53 changed files with 206 additions and 85 deletions

View file

@ -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)