classification
Title: IDLE code completion window does not scroll/select with mouse
Type: behavior Stage: needs patch
Components: IDLE Versions: Python 3.4, Python 3.3, Python 2.7
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: littleq0903, roger.serwy, suddha.sourav, terry.reedy
Priority: normal Keywords:

Created on 2012-08-27 00:35 by suddha.sourav, last changed 2013-06-15 19:08 by terry.reedy.

Messages (6)
msg169175 - (view) Author: suddha sourav (suddha.sourav) Date: 2012-08-27 00:34
In IDLE, pressing tab brings up the code completion menu - however, the scrollbar, when clicked, does not scroll - it disappears. Same goes for clicking an option in the code completion widget - it disappears. Keyboard navigation (pgup/pgdown/up/down) and tab works. In addition, pressing enter does not autocomplete but execute what was meant to be selected.
msg169178 - (view) Author: Colin Su (littleq0903) * Date: 2012-08-27 03:54
On which platform?
msg169191 - (view) Author: suddha sourav (suddha.sourav) Date: 2012-08-27 08:16
Platform is Windows 7 Professional 64-bit. Sorry for not including the information!
msg171842 - (view) Author: suddha sourav (suddha.sourav) Date: 2012-10-03 01:02
I would like to let you know that the issue also persists for Windows 8 Pro
RTM. Has anything been decided on this bug?

On Fri, Aug 31, 2012 at 5:56 PM, Terry J. Reedy <report@bugs.python.org>wrote:

>
> Changes by Terry J. Reedy <tjreedy@udel.edu>:
>
>
> ----------
> nosy: +serwy, terry.reedy
>
> _______________________________________
> Python tracker <report@bugs.python.org>
> <http://bugs.python.org/issue15786>
> _______________________________________
>
msg171849 - (view) Author: Roger Serwy (roger.serwy) * (Python committer) Date: 2012-10-03 03:19
I can confirm that the existing behavior of IDLE prohibits clicking on the scroll bar on Windows (but not Linux). Clicking on an item in the window closes it without actually selecting the clicked item. This is true on both Windows and Linux.

On Windows, the <FocusOut> event is generated when selecting the completion window, causing it to close. On Linux with Gnome3.4, the scroll bar is clickable without closing the window.

By removing "<FocusOut>" from HIDE_SEQUENCES in AutoCompleteWindow.py, the completion window can now take focus. However, the completion window will need some work since key presses in the focused window doesn't change the text selection.
msg171880 - (view) Author: suddha sourav (suddha.sourav) Date: 2012-10-03 11:46
Thank you for the hint, Roger! On my side, I have changed the
HIDE_SEQUENCES tuple to ("<Key-Escape>",) and it is giving me the behaviour
I desired. However, I am not sure if this is a fix of the real issue.

I tried IDLE on OpenSUSE 12.2 last night and faced the problem in its other
manifestation, which you describe.

Thank you again tor the quick feedback!
History
Date User Action Args
2013-06-15 19:08:00terry.reedysetversions: - Python 3.2
2012-10-03 13:57:35serhiy.storchakasettitle: IDLE code completion window does not scoll/select with mouse -> IDLE code completion window does not scroll/select with mouse
2012-10-03 11:46:04suddha.souravsetmessages: + msg171880
2012-10-03 03:19:04roger.serwysettype: behavior
stage: needs patch
messages: + msg171849
versions: + Python 3.2, Python 3.3, Python 3.4
2012-10-03 01:03:00suddha.souravsetmessages: + msg171842
2012-09-01 00:56:15terry.reedysetnosy: + terry.reedy, roger.serwy
2012-08-27 08:16:36suddha.souravsetmessages: + msg169191
2012-08-27 03:54:37littleq0903setnosy: + littleq0903
messages: + msg169178
2012-08-27 00:35:00suddha.souravcreate