diff options
author | Kurt B. Kaiser <kbk@shore.net> | 2003-11-24 05:26:16 +0000 |
---|---|---|
committer | Kurt B. Kaiser <kbk@shore.net> | 2003-11-24 05:26:16 +0000 |
commit | 2303b1c19abd79c94da327d630cbac6f4e83a05c (patch) | |
tree | e410f1186e18cd3d9e0d1a1d1d478b57ecff0562 /Lib/idlelib/PyShell.py | |
parent | 5f4e45d66f3ed30f0275aba8d76c4fb34403bb9c (diff) | |
download | cpython-git-2303b1c19abd79c94da327d630cbac6f4e83a05c.tar.gz |
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
Backport candidate.
Diffstat (limited to 'Lib/idlelib/PyShell.py')
-rw-r--r-- | Lib/idlelib/PyShell.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py index 81ef88e8af..b6205ca689 100644 --- a/Lib/idlelib/PyShell.py +++ b/Lib/idlelib/PyShell.py @@ -16,7 +16,12 @@ import exceptions 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 |