473,324 Members | 2,254 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

broke IDLE while defining a key-binding scheme

Hi all,

IDLE refuses to launch, and I believe it is because I attempted to
define a custom key-binding that it doesn't like.

I was recently defining a custom keybinding in IDLE 1.1 under Python
2.4 on WinMe. (I was using the simpler of the two binding definition
interfaces.) When done, I hit the buttons for 'OK' (or however it is
labelled -- I cannot currently check), but the definition dialog
remained open. After several tries, I hit cancel, and IDLE terminated.
(Whereas I expected the definition interface to close and return my to
my unsaved :-( session.)

Afterwards, IDLE refused to launch. I tried various things, including
reboot and eventually tried to run idle.pyw (the target of various
shortcuts, etc.) by clicking on it. Nothing. Ran idle.py instead. The
DOS-console this brings up displays:

Traceback (most recent call last):
File "C:\Python24\Lib\idlelib\idle.py", line 21, in ?
idlelib.PyShell.main()
File "C:\PYTHON24\lib\idlelib\PyShell.py", line 1355, in main
if not flist.open_shell():
File "C:\PYTHON24\lib\idlelib\PyShell.py", line 275, in open_shell
self.pyshell = PyShell(self)
File "C:\PYTHON24\lib\idlelib\PyShell.py", line 793, in __init__
OutputWindow.__init__(self, flist, None, None)
File "C:\PYTHON24\lib\idlelib\OutputWindow.py", line 16, in __init__
EditorWindow.__init__(self, *args)
File "C:\PYTHON24\lib\idlelib\EditorWindow.py", line 108, in __init__
self.apply_bindings()
File "C:\PYTHON24\lib\idlelib\EditorWindow.py", line 774, in
apply_bindings
text.event_add(event, *keylist)
File "C:\PYTHON24\lib\lib-tk\Tkinter.py", line 1299, in event_add
self.tk.call(args)
_tkinter.TclError: bad event type or keysym "tab"


I read through the various bits of code pointed at in the traceback.
But, I'm a Python hobbyist, and have barely gone further than 'Hello
World' with Tkinter. So, I don't know what to do with the information
in the traceback.

I've looked at a number of 'IDLE won't start threads' that google
knows about, but didn't see anything I recognized as useful.
(Admittedly, I didn't read every single google hit :-)

Further, the last line of the traceback makes me think mine might be a
somewhat unusual case. The keybinding I was defining when the
excrement hit the air-conditioning was to make Shift + TAB perform a
dedent on a region.

I did a search for files names *.p* (STAR.pSTAR for those whose
mail-readers will take the wildcards as mark-up) modified today,
hoping to track down the line defining the keybinding and remove it,
but came up empty.

So, I'm at the end of what I can usefully do by way of diagnosis and
repair.

Suggestions? (Anything gratefully received, but I favour being taught
to fish over being fed merely for today.)

Thanks and best,

Brian vdB

Jul 18 '05 #1
0 1383

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Ron Adam | last post by:
Yes, another newbie question. :-) When I run the following from idle, the msvcrt.getch() function always returns 255 and it doesn't wait for a key press. It also displays the key on the screen...
16
by: Kerry Neilson | last post by:
For the past couple of months, Idle won't start when I invoke it. I am at a complete loss for why this is. When this happens, they python command line still starts, and python works fine...
3
by: Miki Tebeka | last post by:
Hello All, I'd like to bind <CTRL+L> so that it will clear IDLE's screen (in the interactive prompt). Any pointers/suggetions? Thanks. Miki
14
by: Jive | last post by:
I've un-installed Python 2.4, re-installed Python 2.3 and PythonWin for 2.3, but it's still broke. When I start PythonWin, sometimes it looks like it is going to be okay. But as soon as I open...
1
by: gjohannes | last post by:
Hi. I use Idle 1.1.1 on Python 2.4.1. The "Ctrl-" key bindings for indenting do not work on non-us keyboards where brackets are accessed by the "Alt Gr" key. The Tab key seem to work for...
2
by: jcmendez | last post by:
Hello everyone. Trying to run idle from a cygwin session on Win2k (yuk, but I must) I'm getting the following error message. It seems something more Windoze-driven that Python driven, and I'm...
3
by: 7stud | last post by:
Hi, In the IDLE, I can't get most shortcut keys that are listed next to the menu items to work. For instance, under the Format menu item only the shortcuts for "indent region" and "undent...
3
by: rocco.rossi | last post by:
I'm using IDLE for my Python programming. I can't seem to solve one issue though. Whenever I try to indent a region of code, I simply select it and hit the tab key, as I usually do in most...
7
by: Adam W. | last post by:
I did a stupid thing and "wrote in" <Up-Arrowunder the advance key bindings section, and after hitting apply I got a load of exceptions. Now my shell wont open and my IDEL wont start anymore.... ...
0
by: mounty | last post by:
Hi list, I am using a German keyboard on Mac OS X 10.4.11. Idle 1.2.2 is constantly blocking entering the backslash character '\' which is for instance perfectly accepted by my mail application,...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.