473,787 Members | 2,938 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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\Li b\idlelib\idle. py", line 21, in ?
idlelib.PyShell .main()
File "C:\PYTHON24\li b\idlelib\PyShe ll.py", line 1355, in main
if not flist.open_shel l():
File "C:\PYTHON24\li b\idlelib\PyShe ll.py", line 275, in open_shell
self.pyshell = PyShell(self)
File "C:\PYTHON24\li b\idlelib\PyShe ll.py", line 793, in __init__
OutputWindow.__ init__(self, flist, None, None)
File "C:\PYTHON24\li b\idlelib\Outpu tWindow.py", line 16, in __init__
EditorWindow.__ init__(self, *args)
File "C:\PYTHON24\li b\idlelib\Edito rWindow.py", line 108, in __init__
self.apply_bind ings()
File "C:\PYTHON24\li b\idlelib\Edito rWindow.py", line 774, in
apply_bindings
text.event_add( event, *keylist)
File "C:\PYTHON24\li b\lib-tk\Tkinter.py", line 1299, in event_add
self.tk.call(ar gs)
_tkinter.TclErr or: 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 1407

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

Similar topics

0
3429
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 when it should not. import msvcrt while 1:
16
12931
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 otherwise. Most interesting to me is that a reboot won't fix the problem. But if I just try it again sometime later it will work. Anyone have any ideas? I'm running python 2.3 on windows 2000 professional.
3
9687
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
2893
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 a .py file, the interactive window grabs the focus and will not let go. I am stumped. Is there something PythonWin uses that I could try re-installing? WxPython maybe?
1
3421
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 indenting a selected textblock on my swedish keyboard, but Shift-tab does not dedent as you would have expected.
2
3156
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 not and don't wanna be an expert on that OS. Since the group has a good mix of users in different platforms, perhaps someone can help. Python runs fine, my programs run fine, and I can edit in vim and run my code. However, would be nice to...
3
3205
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 region" work. If I highlight some text and use Shift+3 to comment out the region I highlighted, the code is erased and I get the # symbol. When I use the option(alt key) and type a character, I get things like this: ƒ,¢,º,˚
3
389
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 editors, like GEdit or Geany on Linux, for instance, and it works fine. But, if I try to unindent a region of code, which i would do by pressing Shift- Tab in other editors, it just won't work, and I can't find any combination that will. Anybody know...
7
1945
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.... I uninstalled and reinstalled Python with no luck, the whacked settings must be lingering around somewhere. Its python 2.5.1 and its on Vista if that helps.
0
1573
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, as you can see for yourself. If I switch to an US, Australian or English keyboard layout the backslash can be entered. Unfortunately this key position is the pound- sign '#' on a German keyboard. The same applies to (German) Switzerland and...
0
9655
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9498
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10363
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10172
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9964
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8993
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5398
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3670
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2894
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.