Merge with 3.5

This commit is contained in:
Terry Jan Reedy 2015-07-30 21:16:44 -04:00
commit 746f6af715
1 changed files with 10 additions and 0 deletions

View File

@ -23,6 +23,16 @@ except ImportError:
"Your Python may not be configured for Tk. **", file=sys.__stderr__)
sys.exit(1)
import tkinter.messagebox as tkMessageBox
try:
from tkinter import ttk
except:
root = Tk()
root.withdraw()
tkMessageBox.showerror("Idle Cannot Start",
"Idle now requires the tkinter.ttk module from tcl/tk 8.5+.\n"
+ "It found tk %s and no ttk." % TkVersion,
parent=root)
sys.exit(1)
from idlelib.EditorWindow import EditorWindow, fixwordbreaks
from idlelib.FileList import FileList