Autocompletion not working with PyQT4 and PyKDE4 in most of the IDEs

Deadly 提交于 2019-12-05 21:33:44
Wojciech Bederski

There is a number of ways to do it, PyQt4 provides enough information about method names for any object inspecting IDE:

>>> from PyQt4 import QtGui
>>> dir(QtGui.QToolBox) 
['Box', ... contextMenuPolicy', 'count', 'create', 'currentChanged'...]

All those functions are built-in. This means that you have to push some IDEs slightly to notice them. Be aware that there are no docstrings in compiled PyQt and methods have a funny signature.

Other possibility is using QScintilla2 and.api file generated during PyQt4 build process. Eric4 IDE is prepared exactly for that.

<shameless-plug>
You can also try Komodo IDE/Komodo Edit and a CIX file (download here) that I hacked together not so long ago:

and,

Edit: Installation instructions for Komodo 5:

  1. Edit -> Preferences -> Code Intelligence
  2. Add an API Catalog...
  3. Select CIX file, press Open
  4. There is no point 4.

</shameless-plug>

What about WingIDE, It's not free but it's Feature List has "auto-completion for wxPython, PyGTK, and PyQt "

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