Python IDLE. Auto-complete/Show completions not working

后端 未结 5 1391
没有蜡笔的小新
没有蜡笔的小新 2020-12-31 03:42

IDLE is being very dodgy as to when it will actually show an Auto-complete menu. As of late it hasn\'t been working at all, or, more specifically, only works during an inter

5条回答
  •  被撕碎了的回忆
    2020-12-31 03:50

    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.

提交回复
热议问题