Mercurial > cpython-lru_cache-weakref
diff Lib/idlelib/PyShell.py @ 31839:4c06f4faed87 2.3
Keybindings with the Shift modifier now work correctly. So do bindings
which use the Space key. Limit unmodified user keybindings to the
function keys.
Python Bug 775353, IDLEfork Bugs 755647, 761557
Improve error handling during startup if there's no Tkinter.
M NEWS.txt
M PyShell.py
M config-keys.def
M configHandler.py
M keybindingDialog.py
| author | Kurt B. Kaiser <kbk@shore.net> |
|---|---|
| date | Tue, 30 Mar 2004 04:07:00 +0000 |
| parents | f4b4bf7e87d7 |
| children | 7e7273c8d21e |
line wrap: on
line diff
--- a/Lib/idlelib/PyShell.py Mon Mar 29 11:58:55 2004 +0000 +++ b/Lib/idlelib/PyShell.py Tue Mar 30 04:07:00 2004 +0000 @@ -16,7 +16,12 @@ import linecache from code import InteractiveInterpreter -from Tkinter import * +try: + from Tkinter import * +except ImportError: + print>>sys.__stderr__, "** IDLE can't import Tkinter. " \ + "Your Python may not be configured for Tk. **" + sys.exit(1) import tkMessageBox from EditorWindow import EditorWindow, fixwordbreaks
