Antonio
Antonio

Reputation: 27

Is there any widget that IDLE python ide uses for its code autocomplete feature?

With which widget does IDLE, show a dropdown for autocomplete feature which contains a list of classes, methods, functions, etc. Please view the picture from this link for reference.

Upvotes: 1

Views: 110

Answers (1)

Terry Jan Reedy
Terry Jan Reedy

Reputation: 19144

IDLE currently uses a tkinter.Listbox. It is combined with a Scrollbar in a Frame. The up and down keys are bound event handlers. The code is not the best but you can view it in .../Lib/idlelib/autcomplete_w.py.

Upvotes: 2

Related Questions