Skip to content
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

Closed
ronixx mannequin opened this issue Nov 19, 2015 · 3 comments
Closed

_tkinter.TclError: bad event type or keysym "Alt" #69848

ronixx mannequin opened this issue Nov 19, 2015 · 3 comments
Labels
topic-IDLE type-bug An unexpected behavior, bug, or error

Comments

@ronixx
Copy link
Mannequin

ronixx mannequin commented Nov 19, 2015

BPO 25662
Nosy @terryjreedy
Superseder
  • bpo-11437: IDLE crash on startup with typo in config-keys.cfg
  • Files
  • error file.txt
  • 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:

    assignee = None
    closed_at = <Date 2015-11-19.00:37:18.239>
    created_at = <Date 2015-11-19.00:03:26.895>
    labels = ['expert-IDLE', 'type-bug']
    title = '_tkinter.TclError: bad event type or keysym "Alt"'
    updated_at = <Date 2016-11-13.04:08:18.773>
    user = 'https://bugs.python.org/ronixx'

    bugs.python.org fields:

    activity = <Date 2016-11-13.04:08:18.773>
    actor = 'terry.reedy'
    assignee = 'none'
    closed = True
    closed_date = <Date 2015-11-19.00:37:18.239>
    closer = 'ronixx'
    components = ['IDLE']
    creation = <Date 2015-11-19.00:03:26.895>
    creator = 'ronixx'
    dependencies = []
    files = ['41070']
    hgrepos = []
    issue_num = 25662
    keywords = []
    message_count = 3.0
    messages = ['254863', '254867', '280684']
    nosy_count = 2.0
    nosy_names = ['terry.reedy', 'ronixx']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = '11437'
    type = 'behavior'
    url = 'https://bugs.python.org/issue25662'
    versions = ['Python 3.5']

    @ronixx
    Copy link
    Mannequin Author

    ronixx mannequin commented Nov 19, 2015

    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"

    @ronixx ronixx mannequin added type-crash A hard crash of the interpreter, possibly with a core dump topic-IDLE labels Nov 19, 2015
    @ronixx
    Copy link
    Mannequin Author

    ronixx mannequin commented Nov 19, 2015

    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!

    @ronixx ronixx mannequin closed this as completed Nov 19, 2015
    @terryjreedy
    Copy link
    Member

    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'.

    @terryjreedy terryjreedy added type-bug An unexpected behavior, bug, or error and removed type-crash A hard crash of the interpreter, possibly with a core dump labels Nov 13, 2016
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    topic-IDLE type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant