diff options
author | Georg Brandl <georg@python.org> | 2008-05-16 15:48:15 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2008-05-16 15:48:15 (GMT) |
commit | ad9afeb8f02db9a13d2ed8e45361ecbc0d19bd32 (patch) | |
tree | 40cd28e4b9d339d38ac00792f37948fdef291cbf /Lib/idlelib/PyShell.py | |
parent | bbc57d73a0f0d1476d9c23b920ecc1ef8212a554 (diff) | |
download | cpython-ad9afeb8f02db9a13d2ed8e45361ecbc0d19bd32.zip cpython-ad9afeb8f02db9a13d2ed8e45361ecbc0d19bd32.tar.gz cpython-ad9afeb8f02db9a13d2ed8e45361ecbc0d19bd32.tar.bz2 |
Tkinter rename, step 2: fix imports and add stub modules.
Diffstat (limited to 'Lib/idlelib/PyShell.py')
-rw-r--r-- | Lib/idlelib/PyShell.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py index a17f81f..4754866 100644 --- a/Lib/idlelib/PyShell.py +++ b/Lib/idlelib/PyShell.py @@ -17,12 +17,12 @@ import linecache from code import InteractiveInterpreter try: - from Tkinter import * + from tkinter import * except ImportError: - print>>sys.__stderr__, "** IDLE can't import Tkinter. " \ + print>>sys.__stderr__, "** IDLE can't import tkinter. " \ "Your Python may not be configured for Tk. **" sys.exit(1) -import tkMessageBox +import tkinter.messagebox as tkMessageBox from EditorWindow import EditorWindow, fixwordbreaks from FileList import FileList @@ -992,8 +992,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): |