PyQt 文档
我已经安装了 PyQt GPL v4.6.2 for Python v3.1 和 Qt by Nokia v4.6.0 (OpenSource),但 PyQt 中的文档没有出现。示例文档也都是空白的。
有人介意编写一份分步指南,说明要访问哪些链接以及必须执行哪些程序才能为 PyQt 文档显示文本吗?
编辑:程序在 Windows 上运行,并且文档未出现在 PyQt GPL v4.6.2 for Python v3.1 > 中。示例> PyQt 示例和演示 和 Python v3.1 的 PyQt GPL v4.6.2 >助理。。需要做什么才能让两个程序访问文档?
I have installed PyQt GPL v4.6.2 for Python v3.1 and Qt by Nokia v4.6.0 (OpenSource), but the documentation in PyQt is not coming up. Example docs are all blank, too.
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?
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 Demos and PyQt GPL v4.6.2 for Python v3.1 > Assistant. What needs to done to let both programs access the docs?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
这里有一些过时的答案。最好的资源是:
参考指南
和
类参考指南
Some out of date answers here. Best resources are:
The Reference Guide
and
The Class Reference Guide
不确定独立文档,但您是否也看过(这篇文章是CW,因此请随意编辑):
PyQt 的类,改编自 Qt4 提供的文档。
和
使用 Python 进行 GUI 编程:QT 版?
最后一个有一些非常深刻和有用的(至少对我认为的新手来说)建议(例如: Python 对象和 Qt 对象),同时是一本免费书籍。
Not sure about the standalone docs, but have you also looked at (this post is a cw, so feel free to edit):
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.
每当我需要查看文档时,我只需在 Google 中搜索我感兴趣的特定小部件。例如: QTreeWidget。有时您会得到较旧版本的 Qt,但如果单击搜索结果中的“类似”链接,您几乎总能找到您要查找的页面。
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.
PyQt 文档与网站上提供的完全相同,并且如下
包含在安装程序中。它没有与 Assistant 集成(它将是
在未来的版本中)。如果你想使用 Assistant 那么你可以使用 Qt
文档代替(很多人这样做)并在 C++ 和 C++ 之间进行翻译
当你阅读它时,Python。
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.
如果您安装了 Qt 文档,您应该有一个名为 Assistant 的应用程序。这是一个简单的浏览器,用于查看 doc.qt.nokia.com 上的 Qt 文档的本地副本。它是为 C++ 编写的,但心理上翻译成 Python 并不困难,而且它的格式很好,交叉链接也很丰富。我在 PyQt4 中编码时一直保持 Assistant 运行,并发现它非常有帮助。
PyQt 文档,如 www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/classes.html 中给出的,仅仅是相同的诺基亚文本,其格式和许多内部链接被删除并编辑为 python 类和函数语法。
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.
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.