mirror of
https://github.com/python/cpython.git
synced 2025-08-27 20:25:18 +00:00
Tkinter rename, step 2: fix imports and add stub modules.
This commit is contained in:
parent
bbc57d73a0
commit
ad9afeb8f0
53 changed files with 206 additions and 85 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue