New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IDLE accepts, then crashes, on invalid key bindings. #57280
Comments
I have tried all ways of opening IDLE and have uninstalled and reinstalled Python, but when I try to open it it crashes before anything happens |
Try to open cmd (win+r -> type 'cmd' -> press enter), cd in the Python directory and do "python.exe Lib\idlelib\idle.py". |
IDLE with Py3.2.2 works fine on Win 7 for me (desktop) and daughter (laptop), so there is something peculiar with your system. |
Traceback (most recent call last):
File "C:\Python32\Lib\idlelib/idle.py", line 11, in <module>
idlelib.PyShell.main()
File "C:\Python32\Lib\idlelib\PyShell.py",line 1377, in main
shell = flist.open_shell()
File "C:\Python32\Lib\idlelib\PyShell.py", line 273, in open_shell
self.pyshell = PyShell(self)
File "C:\Python32\Lib\idlelib\Pyshell.py", line 802, in __init__
OutputWindow.__init__(self,flist, none, none)
File "C:\Python32\Lib\idlelib\OutputWindow.py", line 16, in __init__
EditorWindow.__init__(self,*args)
File "C:\Python32\Lib\idlelib\EditorWindow.py", line 145, in __init__
self.aply_bindings()
File "C:\Python32\Lib\idlelib\EditorWindow.py", line 985, in apply_bindings
text.event_add(event, *keylist)
File "C:\Python32\Lib\idlelib\MultiCall.py", line 359, in event_add
widget.event_add(self, virtual, seq)
File C:\Python32\Lib\tkinter\__init__.py", line 1353, in event_add
self.tk.call(args)
_tkinter.TclError: bad event type or keysym "Alt" |
That is the traceback given when I run idle.py through windows command prompt |
Are you using the .msi installer from python.org? |
Are you using some "unusual" keyboard layout? |
This issue is very similar to bpo-5707: it is possible to define a custom key binding to "<Alt>" or "<Control>": just click the Alt box and don't select a letter. IDLE should:
|
ok i have solved the problem it was the same as bpo-4765 |
What did you do to solve the problem? |
While this issue and bpo-4765 are about the same effect, with a similar workaround, Amaury has indentified a separate bug in the custom key mechanism. So I retitled it to refer to that bug. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: