You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
IDLE accepts, then crashes, on invalid key bindings. #57280
Try to open cmd (win+r -> type 'cmd' -> press enter), cd in the Python directory and do "python.exe Lib\idlelib\idle.py".
If that doesn't work it should give you a traceback. Once you get the traceback copy/paste it here, so we can figure out what's going on.
IDLE with Py3.2.2 works fine on Win 7 for me (desktop) and daughter (laptop), so there is something peculiar with your system.
jfalskfjdslakfdjsallaksfjaslkfdjsal commented on Oct 3, 2011
jfalskfjdslakfdjsallaksfjaslkfdjsalmannequin
MannequinAuthor
More actions
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_shellself.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"
jfalskfjdslakfdjsallaksfjaslkfdjsal commented on Oct 3, 2011
jfalskfjdslakfdjsallaksfjaslkfdjsalmannequin
MannequinAuthor
More actions
That is the traceback given when I run idle.py through windows command prompt
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.
There is no check, it's possible to save this buggy key binding, and IDLE won't start anymore.
IDLE should:
check the validity of the binding and refuse to save it when it is invalid
gracefully skip invalid bindings from the config file
jfalskfjdslakfdjsallaksfjaslkfdjsal commented on Oct 3, 2011
jfalskfjdslakfdjsallaksfjaslkfdjsalmannequin
MannequinAuthor
More actions
ok i have solved the problem it was the same as bpo-4765
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.
Activity
jfalskfjdslakfdjsallaksfjaslkfdjsal commentedon Sep 30, 2011
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
ezio-melotti commentedon Sep 30, 2011
Try to open cmd (win+r -> type 'cmd' -> press enter), cd in the Python directory and do "python.exe Lib\idlelib\idle.py".
If that doesn't work it should give you a traceback. Once you get the traceback copy/paste it here, so we can figure out what's going on.
terryjreedy commentedon Sep 30, 2011
IDLE with Py3.2.2 works fine on Win 7 for me (desktop) and daughter (laptop), so there is something peculiar with your system.
jfalskfjdslakfdjsallaksfjaslkfdjsal commentedon Oct 3, 2011
jfalskfjdslakfdjsallaksfjaslkfdjsal commentedon Oct 3, 2011
That is the traceback given when I run idle.py through windows command prompt
terryjreedy commentedon Oct 3, 2011
Are you using the .msi installer from python.org?
Or one from activestate or enthought?
ezio-melotti commentedon Oct 3, 2011
Are you using some "unusual" keyboard layout?
amauryfa commentedon Oct 3, 2011
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.
There is no check, it's possible to save this buggy key binding, and IDLE won't start anymore.
IDLE should:
jfalskfjdslakfdjsallaksfjaslkfdjsal commentedon Oct 3, 2011
ok i have solved the problem it was the same as bpo-4765
amauryfa commentedon Oct 3, 2011
What did you do to solve the problem?
terryjreedy commentedon Oct 3, 2011
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.
[-]IDLE refuses to open on windows 7[/-][+]IDLE accepts, then crashes, on invalid key bindings.[/+]