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/PyShell.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/PyShell.py')
-rw-r--r-- | Lib/idlelib/PyShell.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py index 16f9ccf..a7fd928 100644 --- a/Lib/idlelib/PyShell.py +++ b/Lib/idlelib/PyShell.py @@ -15,12 +15,12 @@ import linecache from code import InteractiveInterpreter try: - from Tkinter import * + from tkinter import * except ImportError: print("** IDLE can't import Tkinter. " \ "Your Python may not be configured for Tk. **", file=sys.__stderr__) sys.exit(1) -import tkMessageBox +import tkinter.messagebox as tkMessageBox from idlelib.EditorWindow import EditorWindow, fixwordbreaks from idlelib.FileList import FileList @@ -983,8 +983,8 @@ class PyShell(OutputWindow): (sys.version, sys.platform, self.COPYRIGHT, self.firewallmessage, idlever.IDLE_VERSION, nosub)) self.showprompt() - import Tkinter - Tkinter._default_root = None # 03Jan04 KBK What's this? + import tkinter + tkinter._default_root = None # 03Jan04 KBK What's this? return True def readline(self): |