diff options
| author | Terry Jan Reedy <tjreedy@udel.edu> | 2015-07-31 01:16:29 (GMT) | 
|---|---|---|
| committer | Terry Jan Reedy <tjreedy@udel.edu> | 2015-07-31 01:16:29 (GMT) | 
| commit | b20ac4df842380e48e4db1830c7c14fab34f6435 (patch) | |
| tree | d277753bb3248577a175499bc2b589e0c9ecaea0 /Lib/idlelib/PyShell.py | |
| parent | 78378e89393b99e20c45cb6131fa9d7fa120baac (diff) | |
| parent | 062759f1dcfc025d1aae430ad89e22b8fd02dbf2 (diff) | |
| download | cpython-b20ac4df842380e48e4db1830c7c14fab34f6435.zip cpython-b20ac4df842380e48e4db1830c7c14fab34f6435.tar.gz cpython-b20ac4df842380e48e4db1830c7c14fab34f6435.tar.bz2  | |
Merge with 3.4
Diffstat (limited to 'Lib/idlelib/PyShell.py')
| -rwxr-xr-x | Lib/idlelib/PyShell.py | 10 | 
1 files changed, 10 insertions, 0 deletions
diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py index a5236ab..12233fb 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  | 
