티스토리 뷰
The only thing i found so far is that if an editing session of IDLE is connected with python shell (called "interactive mode" in the question, i.e. after an attempt to run the edited script) then "non-interactive" IDLE can autocomplete based on values in interactive window. For example, if I type
a = [];
a.appen
and then hit < Tab > it will do nothing, but if I previously type
a = []
in corresponding python shell, IDLE will autocomplete correctly.
So my only suggestion is import same modules with same names in python shell window in order to make them "visible" for non-interactive IDLE editor.
-------------------I had the same problem with IDLE, because I want to learn Qt and therefore autocompletion is very useful.
As it says in the settings of IDLE, you can trigger the autocomplete with "Control + Space", e.g. after a "QtGui.". Then a menu opens where you can arrow-scroll through the entries.
-------------------제 경우에는 편집기에서 옵션 메뉴-> 확장 탭을 열고 자동 완성 및 기타 관련 옵션이 활성화되어 있는지 확인해야했습니다. 실제로는 그랬지만, 아무것도 변경하지 않아도 '적용'을 클릭하는 것만으로도 트릭을 만들 수있었습니다.
-------------------때로는 제안을 받기 위해 기다려야하는 시간과 관련이 있습니다.
당신이 갈 때 options > extensions > general
의 completions popup wait
당신은 500ms 정도까지 변경할 수 있습니다. 제 경우에는 기본적으로 2000ms였습니다.
'IDLE 편집기 창'을 사용하여 먼저 코드를 저장하고 실행해야합니다. 응용 프로그램이 실행 중이면 편집기 창으로 돌아가 자동 완성 기능을 사용합니다.
출처
https://stackoverflow.com/questions/39969989