diff options
author | Georg Brandl <georg@python.org> | 2008-05-20 07:13:37 +0000 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2008-05-20 07:13:37 +0000 |
commit | 6634bf2919d855ccd821e878b8cc00c7209f1cbe (patch) | |
tree | 77ef2dfaaf00ec144e75ac19708e4dd457604ebc /Lib/idlelib/PyShell.py | |
parent | 33cece05b918dff706a4298e33f84d8e8a0391d2 (diff) | |
download | cpython-git-6634bf2919d855ccd821e878b8cc00c7209f1cbe.tar.gz |
Tkinter rename reversal: remove tkinter package, adapt imports and docs.
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 4754866e03..a17f81ff40 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 tkinter.messagebox as tkMessageBox +import 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): |