简体   繁体   English

Pycharm中的PyQT Intellisense /签名?

[英]PyQT Intellisense/signatures in Pycharm?

I'm just getting started using PyQT 5, and I'm finding the documentation a bit lacking. 我刚刚开始使用PyQT 5,但是我发现文档有些缺乏。 I took a peek around the directory in site-packages, and couldn't find what I was looking for. 我浏览了站点软件包中的目录,但找不到我想要的东西。 What is the best way to: 最好的方法是:

a) Get Intellisense/Autocomplete working in PyCharm for PyQT5 a)在PyCharm中为PyQT5获取Intellisense /自动完成功能

or b) take a peek at the python implementation of pyQT to see what methods/etc are available to me? 或b)看看pyQT的python实现,看看有什么方法/等对我有用?

Their docs all just point to QT5 C++ docs, which is great, but I was looking for exact method signatures in python. 他们的文档都只指向QT5 C ++文档,这很棒,但是我在python中寻找确切的方法签名。

Thanks! 谢谢!

I read this page and followed Anže Starič's opinion. 我阅读了此页面,并遵循了AnžeStarič的意见。

My computer is 我的电脑是

  • Windows 10 Windows 10
  • Python 3.5 Python 3.5
  • PyQt5 PyQt5
  • PyCharm 5.0.1 PyCharm 5.0.1

So I typed: 所以我输入:

python "C:\Program Files\JetBrains\PyCharm 5.0.1\helpers\generator3.py" -x -d "C:\Users\user\.PyCharm50\system\python_stubs\324234324" PyQt5
python "C:\Program Files\JetBrains\PyCharm 5.0.1\helpers\generator3.py" -x -d "C:\Users\user\.PyCharm50\system\python_stubs\324234324" PyQt5.QtCore
python "C:\Program Files\JetBrains\PyCharm 5.0.1\helpers\generator3.py" -x -d "C:\Users\user\.PyCharm50\system\python_stubs\324234324" PyQt5.QtWidgets
......

I tried EVERY module. 我尝试了每个模块。 Of course, you can write a batch file/shell script and you should change those paths to your own. 当然,您可以编写批处理文件/ shell脚本,并且应该将这些路径更改为自己的路径。

Finally the autocomplete works. 最终,自动完成功能开始运行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM