classification
Title: Idle autocomplete window doesn't show up
Type: behavior Stage: patch review
Components: IDLE Versions: Python 3.9, Python 3.8, Python 3.7, Python 2.7
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: terry.reedy Nosy List: JohnnyNajera, taleinat, terry.reedy
Priority: normal Keywords: patch

Created on 2019-11-29 21:14 by JohnnyNajera, last changed 2019-12-03 13:28 by JohnnyNajera.

Pull Requests
URL Status Linked Edit
PR 17416 open JohnnyNajera, 2019-11-29 21:16
Messages (3)
msg357654 - (view) Author: JohnnyNajera (JohnnyNajera) * Date: 2019-11-29 21:14
In Ubuntu 19.10 and probably earlier versions of Ubuntu, the autocomplete window  doesn't show up when expected. This is probably due to wm_geometry called in a context in which it has no effect.
msg357656 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2019-11-30 03:34
IDLE completes global names, attributes, and file names with various invocation methods.  The main problem users have in editor windows is not running the module to update namespaces.  But the claim here (and in the PR) is that there is a timing problem. 

JN,  please post at least one minimal, specific, sometimes reproducible example, with code and user actions, that misbehaves.  Do you have any idea why a 1 millesecond delay helps?

(3.5 and 3.6 only get security fixes.)
msg357753 - (view) Author: JohnnyNajera (JohnnyNajera) * Date: 2019-12-03 13:28
At least this scenario:
Ubuntu 19.10
Open the interpreter
Literally nothing makes the autocomplete window show up.

As mentioned in the PR, it's not about the 1-ms but about being called outside of the event itself.
This can also be fixed by immediately calling `update_idletasks`, but more about this in the PR.

Thanks, have a nice day.
History
Date User Action Args
2019-12-03 13:28:38JohnnyNajerasetmessages: + msg357753
2019-11-30 03:34:11terry.reedysetnosy: + taleinat

messages: + msg357656
versions: - Python 3.5, Python 3.6
2019-11-29 21:16:24JohnnyNajerasetkeywords: + patch
stage: patch review
pull_requests: + pull_request16898
2019-11-29 21:14:46JohnnyNajeracreate