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
_tkinter.TclError: bad event type or keysym "Alt" #69848
Comments
For a while now my python IDLE has not been working, mostly due to me trying and failing to reconfigure the button assignment to tailor me. Now when i try to open idle it does not open. I tried using some sites for help (http://www.gossamer-threads.com/lists/python/bugs/901999) which had a similar error however, even with a new config file it still wasn't working. Please could I get some help as I need python running on my laptop to do my university coursework. I've attached a file with the error message from cmd.exe and will paste it again; C:\Users\Francesca>C:\Users\Francesca\AppData\Local\Programs\Python\Python35-32\
Lib\idlelib\idle.py
Traceback (most recent call last):
File "C:\Users\Francesca\AppData\Local\Programs\Python\Python35-32\Lib\idlelib
\idle.py", line 11, in <module>
idlelib.PyShell.main()
File "C:\Users\Francesca\AppData\Local\Programs\Python\Python35-32\Lib\idlelib
\PyShell.py", line 1560, in main
shell = flist.open_shell()
File "C:\Users\Francesca\AppData\Local\Programs\Python\Python35-32\Lib\idlelib
\PyShell.py", line 320, in open_shell
self.pyshell = PyShell(self)
File "C:\Users\Francesca\AppData\Local\Programs\Python\Python35-32\Lib\idlelib
\PyShell.py", line 867, in __init__
OutputWindow.__init__(self, flist, None, None)
File "C:\Users\Francesca\AppData\Local\Programs\Python\Python35-32\Lib\idlelib
\OutputWindow.py", line 16, in __init__
EditorWindow.__init__(self, *args)
File "C:\Users\Francesca\AppData\Local\Programs\Python\Python35-32\Lib\idlelib
\EditorWindow.py", line 167, in __init__
self.apply_bindings()
File "C:\Users\Francesca\AppData\Local\Programs\Python\Python35-32\Lib\idlelib
\EditorWindow.py", line 1097, in apply_bindings
text.event_add(event, *keylist)
File "C:\Users\Francesca\AppData\Local\Programs\Python\Python35-32\Lib\idlelib
\MultiCall.py", line 374, in event_add
widget.event_add(self, virtual, seq)
File "C:\Users\Francesca\AppData\Local\Programs\Python\Python35-32\Lib\tkinter
\__init__.py", line 1503, in event_add
self.tk.call(args)
_tkinter.TclError: bad event type or keysym "Alt" |
Under the users .idlerc folder: C:\Users\Francesca\.idlerc edit config-extensions.cfg in notepad (don't select always open with) The code should look like this: [CodeContext] [ScriptBinding_cfgBindings] So edited mine to be like this as it was changed to <Control-Alt> and idle was working again! |
A crash is when Python stops without a traceback, even when run with somewhere for a traceback to go. However, I regard it as a bug for IDLE to stop because of a problem in a user.cfg file. I am not re-opening because this appears to be a duplicate of bpo-11437, which had the same error message with 'up' instead of 'Alt'. |
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: