summaryrefslogtreecommitdiff
path: root/Lib/idlelib
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2015-07-30 21:16:44 -0400
committerTerry Jan Reedy <tjreedy@udel.edu>2015-07-30 21:16:44 -0400
commit746f6af7159ef2a8d0662b5dc88697e1574cf0b3 (patch)
tree6b8d869b55aa949fdc3612d19b304088613d3864 /Lib/idlelib
parentfa3922cfd0697bc3286c301c5d9458160c80cc89 (diff)
parentb20ac4df842380e48e4db1830c7c14fab34f6435 (diff)
downloadcpython-git-746f6af7159ef2a8d0662b5dc88697e1574cf0b3.tar.gz
Merge with 3.5
Diffstat (limited to 'Lib/idlelib')
-rwxr-xr-xLib/idlelib/PyShell.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py
index a5236ab476..12233fb86f 100755
--- a/Lib/idlelib/PyShell.py
+++ b/Lib/idlelib/PyShell.py
@@ -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