summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/PyShell.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-05-20 07:13:37 (GMT)
committerGeorg Brandl <georg@python.org>2008-05-20 07:13:37 (GMT)
commit6634bf2919d855ccd821e878b8cc00c7209f1cbe (patch)
tree77ef2dfaaf00ec144e75ac19708e4dd457604ebc /Lib/idlelib/PyShell.py
parent33cece05b918dff706a4298e33f84d8e8a0391d2 (diff)
downloadcpython-6634bf2919d855ccd821e878b8cc00c7209f1cbe.zip
cpython-6634bf2919d855ccd821e878b8cc00c7209f1cbe.tar.gz
cpython-6634bf2919d855ccd821e878b8cc00c7209f1cbe.tar.bz2
Tkinter rename reversal: remove tkinter package, adapt imports and docs.
Diffstat (limited to 'Lib/idlelib/PyShell.py')
-rw-r--r--Lib/idlelib/PyShell.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py
index 4754866..a17f81f 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):