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 autocomplete window does not automatically close when selection is made #68149
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=Noneclosed_at=<Date2016-04-25.03:54:14.288>created_at=<Date2015-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=<Date2016-04-25.03:54:14.287>user='https://bugs.python.org/AlSweigart'
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)
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.
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.
AlSweigart commented on Apr 18, 2015
AlSweigartmannequin
MannequinAuthor
More actions
I should clarify: I'm referring to the "Show Completion" feature. The repro steps are (on Windows 7 64-bit, Python 3.5)
Type "pri"
Press Ctrl+Space or click Edit > Show Completions. The autocomplete window appears.
Press Tab. The text updates from "pri" to "print"
However, the autocomplete window is still there.
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!
Activity
AlSweigart commentedon Apr 15, 2015
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)
AlSweigart commentedon Apr 15, 2015
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.
terryjreedy commentedon Apr 17, 2015
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.
AlSweigart commentedon Apr 18, 2015
I should clarify: I'm referring to the "Show Completion" feature. The repro steps are (on Windows 7 64-bit, Python 3.5)
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!