Skip to content

IDLE autocomplete window does not automatically close when selection is made #68149

Closed

Description

@AlSweigart
BPO 23961
Nosy @terryjreedy
Superseder
  • bpo-15786: IDLE code completion window can hang or misbehave with mouse
  • 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 2016-04-25.03:54:14.288>
    created_at = <Date 2015-04-15.01:22:15.405>
    labels = ['expert-IDLE', 'type-bug']
    title = 'IDLE autocomplete window does not automatically close when selection is made'
    updated_at = <Date 2016-04-25.03:54:14.287>
    user = 'https://bugs.python.org/AlSweigart'

    bugs.python.org fields:

    activity = <Date 2016-04-25.03:54:14.287>
    actor = 'berker.peksag'
    assignee = 'none'
    closed = True
    closed_date = <Date 2016-04-25.03:54:14.288>
    closer = 'berker.peksag'
    components = ['IDLE']
    creation = <Date 2015-04-15.01:22:15.405>
    creator = 'Al.Sweigart'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 23961
    keywords = []
    message_count = 4.0
    messages = ['241068', '241070', '241369', '241428']
    nosy_count = 2.0
    nosy_names = ['terry.reedy', 'Al.Sweigart']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = '15786'
    type = 'behavior'
    url = 'https://bugs.python.org/issue23961'
    versions = ['Python 3.5']

    Activity

    1. AlSweigart commented on Apr 15, 2015

      AlSweigartmannequin
      MannequinAuthor

      All autocomplete features (for example, Eclipse & Android Studio) cause the autocomplete window to disappear when a selection is made. When tab is pressed in IDLE, the window does not disappear.

      IDLE should be changed so that the window goes away when tab is pressed to complete the window after Ctrl+Space or Edit > Show Completions openedit. Currently, the window stays open until another keyboard key is pressed (e.g. space, or an opening parenthesis)

    2. added
      type-bug
      on Apr 15, 2015
    3. AlSweigart commented on Apr 15, 2015

      AlSweigartmannequin
      MannequinAuthor

      Edit: Looking into it further, this behavior was originally for when the Show Completions dropdown wasn't being displayed. In that case, pressing tab would complete only up to the first ambiguous completion.

      For example, typing "os.ge" and pressing tab would complete to "os.get", since from there it is ambiguous whether it will be os.get_exec_path, os.get_handle_inheritable, get_terminal_size, etc.

      This behavior should stay the same. Although if it is completely unambiguous what the final completion is (say for typing "pri" and pressing tab, which can only autocomplete to "print") then the Show Completions dropdown should disappear.

    4. terryjreedy commented on Apr 17, 2015

      @terryjreedy
      Member

      I believe Tab is working as designed. If so, you are requesting that the design be reviewed and possible changed. As noted in bpo-15786, Click and Enter are not working as intended, so I think fixing the bugs is a higher priority.

    5. AlSweigart commented on Apr 18, 2015

      AlSweigartmannequin
      MannequinAuthor

      I should clarify: I'm referring to the "Show Completion" feature. The repro steps are (on Windows 7 64-bit, Python 3.5)

      1. Type "pri"
      2. Press Ctrl+Space or click Edit > Show Completions. The autocomplete window appears.
      3. Press Tab. The text updates from "pri" to "print"
      4. However, the autocomplete window is still there.
      5. Pressing space or ( will then cause the autocomplete window to disappear.

      This is distinct from bpo-15786, but close enough that I'll close this bug and add this comment to it. Thanks for the input!

    6. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      topic-IDLEtype-bug

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions