[Idle-dev] newbie question: getting emacs keybindings in IDLE
Kurt B. Kaiser
kbk at shore.net
Sat Oct 22 18:23:13 CEST 2005
Ron MacNeil <ronmac at media.mit.edu> writes:
>>Simple cursor movement in IDLE is done via the tkinter/Tk library.
>>IDLE doesn't have virtual events that can be bound to <cursor-left>
>>and so forth. So there isn't any simple way to do what you are asking.
> is there any way to, even in a convoluted way, map "what the left arrow
> key does" or "move cursor left one space" to C-b?
These bindings are intercepted by the Tk event loop and passed to the
Text widget in the IDLE Edit window. You could investigate tkinter
and the Tk Text widget itself. Note that there are a few bindings
(besides the cursor keys) passed through from Tk and available in
IDLE: C-a, C-e, C-k for example. If you figure out how those bindings
work, you probably can solve your problem. Let us know what you find
Also, there is a mailing list, Tkinter-discuss at python.org, which might
More information about the IDLE-dev