homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: _tkinter.TclError: bad event type or keysym "Alt"
Type: behavior Stage: resolved
Components: IDLE Versions: Python 3.5
process
Status: closed Resolution: duplicate
Dependencies: Superseder: IDLE crash on startup with typo in config-keys.cfg
View: 11437
Assigned To: Nosy List: ronixx, terry.reedy
Priority: normal Keywords:

Created on 2015年11月19日 00:03 by ronixx, last changed 2022年04月11日 14:58 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
error file.txt ronixx, 2015年11月19日 00:03
Messages (3)
msg254863 - (view) Author: Chesqa Yen (ronixx) Date: 2015年11月19日 00:03
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"
msg254867 - (view) Author: Chesqa Yen (ronixx) Date: 2015年11月19日 00:37
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]
visible = False
[ScriptBinding_cfgBindings]
run-module = <Control-Key-F5>
So edited mine to be like this as it was changed to <Control-Alt> and idle was working again!
msg280684 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2016年11月13日 04:08
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 #11437, which had the same error message with 'up' instead of 'Alt'.
History
Date User Action Args
2022年04月11日 14:58:23adminsetgithub: 69848
2016年11月13日 04:08:18terry.reedysetsuperseder: IDLE crash on startup with typo in config-keys.cfg
nosy: + terry.reedy

messages: + msg280684
type: crash -> behavior
resolution: fixed -> duplicate
stage: resolved
2015年11月19日 00:37:18ronixxsetstatus: open -> closed
resolution: fixed
messages: + msg254867
2015年11月19日 00:03:26ronixxcreate

AltStyle によって変換されたページ (->オリジナル) /