mirror of
https://github.com/python/cpython.git
synced 2025-07-31 15:14:22 +00:00
Tkinter rename, step 2: fix imports and add stub modules.
This commit is contained in:
parent
bbc57d73a0
commit
ad9afeb8f0
53 changed files with 206 additions and 85 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue