This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients darthur90, ned.deily, ronaldoussoren, taleinat, terry.reedy
Date 2020-04-01.03:20:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1585711216.72.0.93141027791.issue40128@roundup.psfhosted.org>
In-reply-to
Content
My first though was that the 'guy' had executed 'import math' and you had not.  (See the IDLE doc at https://docs.python.org/3/library/idle.html or, within IDLE, Help => IDLE Help, "Editing and navigations" section, "completions' subsection, 2nd to last paragraph.)  Or maybe this was another 'Catalina' issue.

But I tried completion on my MacbookAir with Mohave 10.14.6? and 3.8.2 and 3.7.5, in Shell at >>>, that don't need imports. 'i'<tab> should bring up a box with 'id' at the top.  'int.' should bring up a box with 'as_integer_ratio' at the top.  This works for me on Windows but not on the Mac.

For shortcuts, IDLE Preferences, Keys tab, has "force_open_completions    <control-key-space>".  But the edit menu has "Show completions     ^S". Control-S is not Control-space.  Bug 1. In either case, neither work.  Nor does clicking the menu entry.  Bug 2.  Hitting ^S causes "Edit" on the main menu to flash blue (Mac only); ^space.  I believe this means that ^S invoked an item on the menu.  I repeated the above with IDLE started in Terminal ('python3 -m idlelib').  No errors messages appeared.

There are issues where shortcuts don't work, because they duplicate system binding, but menu items do.  This is different.

Is this a tkinter widget problem?  Similar Toplevel popups (calltips, squeezer tooltips) work.  Listbox is also used in config, config-key, and debugger dialogs, all of which at least appear.  

A debug print is autocomplete_w.py show_window reveals that it is called when it should be, including after both ^space and ^S, with what I believe are appropriate arguments.  Another print in winconfig_event, just before the geometry call to move the window into view, shows that x,y position looks good.  But two oddities: winconfig_event is called twice instead of once, and with ^space and not ^S.  I have no idea how this could be.  Adding update() just before update_idletasks() prevents the 2nd winconfig_event call but does not make the popup appear.

I am out of ideas at the moment, except for this.  Other popups are withdrawn while created and filled in, and then deiconified, while this one is moved off screen to 10000,10000 and moved back. Wondering whether tk 8.6 does not like this movement, I disabled it.  The widget should then appear, but does not.
History
Date User Action Args
2020-04-01 03:20:16terry.reedysetrecipients: + terry.reedy, ronaldoussoren, taleinat, ned.deily, darthur90
2020-04-01 03:20:16terry.reedysetmessageid: <1585711216.72.0.93141027791.issue40128@roundup.psfhosted.org>
2020-04-01 03:20:16terry.reedylinkissue40128 messages
2020-04-01 03:20:14terry.reedycreate