Mercurial > cpython-lru_cache-weakref
diff Lib/idlelib/PyShell.py @ 47101:88bb9df385dc legacy-trunk
Tkinter rename, step 2: fix imports and add stub modules.
| author | Georg Brandl <georg@python.org> |
|---|---|
| date | Fri, 16 May 2008 15:48:15 +0000 |
| parents | ebc40e500869 |
| children | b53604fad54b |
line wrap: on
line diff
--- a/Lib/idlelib/PyShell.py Fri May 16 14:24:45 2008 +0000 +++ b/Lib/idlelib/PyShell.py Fri May 16 15:48:15 2008 +0000 @@ -17,12 +17,12 @@ 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 @@ (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):
