PyCharm - autocomplete for Gtk3 magically stops working

三世轮回 提交于 2019-12-04 04:05:52

In PyCharm community edition 3.4.1 (mint 17), to make Gtk3 autocompletion works:

  1. In file: "pycharm.community-3.4.1/bin/idea.properties" comment the line: "idea.max.intellisense.filesize=2500"
  2. Restart the IDE
  3. In your code: from gi.repository import Gtk strike Alt-Enter and select "Generate stubs for binary module"

I had the same issue and found out that the Gtk.py file is too big for IDE file size limit allowed by PyCharm. I changed the config value "idea.max.intellisense.filesize" in idea.properties from 2500 to 10000. The stub generation takes some time but finishes now.

Hope that helps even Windows users. Feedback appreciated.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!