We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c38939 commit 2a85a1aCopy full SHA for 2a85a1a
Lib/idlelib/PyShell.py
@@ -23,6 +23,16 @@
23
"Your Python may not be configured for Tk. **", file=sys.__stderr__)
24
sys.exit(1)
25
import tkMessageBox
26
+try:
27
+ import ttk
28
+except:
29
+ root = Tk()
30
+ root.withdraw()
31
+ tkMessageBox.showerror("Idle Cannot Start",
32
+ "Idle now requires the Tkinter ttk module from tcl/tk 8.5+.\n"
33
+ + "It found tk %s and no ttk." % TkVersion,
34
+ parent=root)
35
+ sys.exit(1)
36
37
from idlelib.EditorWindow import EditorWindow, fixwordbreaks
38
from idlelib.FileList import FileList
0 commit comments