python PyQt 文档
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/1962273/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
PyQt documentation
提问by Noctis Skytower
I have installed PyQt GPL v4.6.2 for Python v3.1and Qt by Nokia v4.6.0 (OpenSource), but the documentation in PyQt is not coming up. Example docs are all blank, too.
我已经安装了PyQt GPL v4.6.2 for Python v3.1和Qt by Nokia v4.6.0 (OpenSource),但是 PyQt 中的文档没有出现。示例文档也都是空白的。
Would anyone mind writing a step-by-step guide on what links to visit and what procedures must be executed in order to get text to come up for the PyQt documentation?
有人会介意写一个关于要访问哪些链接以及必须执行哪些程序才能为 PyQt 文档提供文本的分步指南吗?
Edit:The programs are running on Windows, and the documentation is not coming up in PyQt GPL v4.6.2 for Python v3.1 > Examples > PyQt Examples and Demosand PyQt GPL v4.6.2 for Python v3.1 > Assistant. What needs to done to let both programs access the docs?
编辑:程序在 Windows 上运行,文档没有出现在PyQt GPL v4.6.2 for Python v3.1 > Examples > PyQt Examples and Demos和PyQt GPL v4.6.2 for Python v3.1 > Assistant。需要做什么才能让两个程序访问文档?
采纳答案by Noctis Skytower
The PyQt documentation is exactly as provided on the website, and as included in the installer. It is not integrated with Assistant (it will be in a future version). If you want to use Assistant then you can use the Qt documentation instead (a lot of people do) and translate between C++ and Python as you read it.
PyQt 文档与网站上提供的完全相同,并且包含在安装程序中。它没有与 Assistant 集成(它将在未来的版本中)。如果您想使用助手,那么您可以改用 Qt 文档(很多人都这样做),并在阅读时在 C++ 和 Python 之间进行转换。
回答by Squidinker
Some out of date answers here. Best resources are:
这里有一些过时的答案。最好的资源是:
and
和
回答by mlvljr
Not sure about the standalone docs, but have you also looked at (this post is a cw, so feel free to edit):
不确定独立文档,但您是否也看过(这篇文章是一个 cw,所以请随意编辑):
PyQt's Classes, adapted from the documentation provided with Qt4.
and
和
GUI Programming with Python: QT Edition?
The last one has some really deep and helpful (at least to a novice I think) advice (for example: Python Objects and Qt Objects) while being a free book.
最后一个有一些非常深刻和有用的(至少对我认为是新手)建议(例如:Python 对象和 Qt 对象),同时是一本免费的书。
回答by Jesse Aldridge
Whenever I need to look at documentation, I just search Google for the specific widget I am interested in. For example: QTreeWidget. Sometimes you get an older version of Qt, but if you click the "similar" link in the search result, you can pretty much always find the page you are looking for.
每当我需要查看文档时,我只需在 Google 上搜索我感兴趣的特定小部件。例如: QTreeWidget。有时您会得到较旧版本的 Qt,但如果您单击搜索结果中的“类似”链接,您几乎总能找到您要查找的页面。
回答by user405
If you installed the Qt documentation, you should have an app named Assistant. This is a simple-minded browser for a local copy of the Qt doc as found at doc.qt.nokia.com. It is written for C++ but the mental translation to Python is not difficult, and it is nicely formatted and richly cross-linked. I keep Assistant running all the time I'm coding in PyQt4 and find it very helpful.
如果您安装了 Qt 文档,您应该有一个名为 Assistant 的应用程序。这是一个简单的浏览器,用于在 doc.qt.nokia.com 上找到 Qt 文档的本地副本。它是为 C++ 编写的,但在心理上转换为 Python 并不困难,而且它的格式很好并且具有丰富的交叉链接。我在 PyQt4 中编码时一直让 Assistant 运行,并且发现它非常有帮助。
The PyQt doc, as given at www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/classes.html, is merely this same Nokia text with its formatting and many of the internal links stripped out and edited to python class and function syntax.
PyQt 文档,如 www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/classes.html 所给出的,只是同样的诺基亚文本,其格式和许多内部链接被剥离并编辑为 python 类和函数语法。